Friday, May 14, 2010

Random picture movement on webpage

Open any webpage having some picture:
Copy and paste following code in Address bar.(single line)
Press ENTER or Go.
See the fun

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)

Keep checking for good discussions and great tricks ;)

1 comment: