KitzKikz  KitzKikz: SogudiTipsJavascript   RecentChanges 
 PopularPages 
 SearchPages 
 Home | Trail - SogudiTipsJavascript
 

  >> SogudiTips - SogudiTipsHelp
!! Cool Sogudi Tricks with Javascript #[Javascript]

|{cellpadding=2 border=1 cellspacing=0 }{bgcolor=gray style=color:white}{colspan=2} Make Current Window Full Screen |
| fs | javascript:self.moveTo(0,0);self.resizeTo(screen.availWidth,screen.availHeight); |

|{cellpadding=2 border=1 cellspacing=0 }{bgcolor=gray style=color:white}{colspan=2} Make Current Window 800 Pixels Wide |
| 800 | javascript:self.moveTo(0,0);self.resizeTo(800,screen.availHeight); |

|{cellpadding=2 border=1 cellspacing=0 }{bgcolor=gray style=color:white}{colspan=2} Scientific Calculator |
| calc | javascript:expr=prompt('Formula...(eg:%20%202*3%20+%207/8%20)','');if(expr)%7Bwith(Math)%7Bevl=parseFloat(eval(expr))%7D;if(isNaN(evl))%7Balert('Not%20a%20number!')%7Delse%7Bvoid(prompt('Result:',evl))%7D%7Delse%7Bvoid(null)%7D |

|{cellpadding=2 border=1 cellspacing=0 }{bgcolor=gray style=color:white}{colspan=2} Standard 216 Web Colors |
| color | javascript:t='';c=new%20Array('00','33','66','99','CC','FF');for(i=0;i%3c6;i++)%7Bt+='%3Ctable%20width=100%25%3E';for(j=0;j%3c6;j++)%7Bt+='%3ctr%3E';for(k=0;k%3c6;k++)%7BL=c%5Bi%5D+c%5Bj%5D+c%5Bk%5D;t+='%3ctd%20bgcolor='+L+'%3E'+L%7Dt+='%3c/tr%3E'%7Dt+='%3c/table%3E'%7D;with(document)%7Bwrite(t);void(close())%7D |

|{cellpadding=2 border=1 cellspacing=0 }{bgcolor=gray style=color:white}{colspan=2} Four Windows for Multi-Window Surfing |
| make4 | javascript:w=innerWidth;h=innerHeight;S=screen;W=S.availWidth;H=S.availHeight;moveTo(0,0);if(W-w%3C130)w-=60;if(H-h%3C180)h-=80;resizeTo(w,h);P=new%20Array(W,w,w,h,h,H);for(J=0;J%3C3;J++)%7Bvar%20M=open('',J);focus();M.resizeTo(w,h);M.moveTo(W-P%5BJ%5D,H-P%5BJ+3%5D)%7D |
|{}{colspan=2} This was more useful when we didn't have tabbed browsing, but it is still handy at times. |

If the above javascript links don't work when you click on them, try dragging them onto Safari's location field. You can also right-click (ctrl-click), select copy, and then paste into a Sogudi shortcut.

Find more javascriptlet ideas at http://www.bookmarklets.com , http://www.squarefree.com/bookmarklets/ or the external links section at [http://en.wikipedia.org/wiki/Bookmarklet#External_links]
>> SogudiTips - SogudiTipsHelp
 

 
  ·  0.0904s