Breaking

Thursday, September 21, 2006

A few cool Java Scripts u'd enjoy!


Here are some cool java script for Windows. Just copy the script and paste it on the address bar of the web-browser and see the magic!

1. Script for vibration of web-browsers (I tested with Firefox and IE)

javascript:function flood(n) {if (self.moveBy) {for (i = 35; i > 0; i--) {for (j = n; j > 0; j--) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} flood(6);


2. This one is for moving the pics and links on the browsers

javascript:R=-1;DI=document.links;DIL=DI.length;function A(a,b,c){return Math.sin(R/350*6.28*b+a)*c+c}function B(a){DIS=DI.item(a).style;DIS.position='absolute';
DIS.left=A(5,100,500);DIS.top=A(5.6,60,150)}
setInterval('R++;B(R%DIL)',15);void(0);


3. Stupid msgs:

javascript:function reverse() { var inp ="??edis r'u no gniog si zzthw??u r woh!!!ih yeH"; var outp = ""; for (i = 0; i <= inp.length; i++) { outp = inp.charAt (i) + outp ; } alert(outp) ;}; reverse();

No comments: