Search This Blog

Monday, 1 November 2010

JavaScript Magic..........truly amazing (must try this)

Open any website OR intranet site which contains images.
 
 
 
Copy below code and paste it on browser address bar. Now enter and see the magic.
 
 Note :- Use Internet Explorer or Mozilla FireFox
 
 
 
Javascript:R= 0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document. Images; DIL= DI.length; function A(){for(I=0; I<DIL; I++){DIS=DI[ I ].style; DIS.position= 'absolute' ; DIS.left=Math. Sin(R*x1+ I*x2+x3)* x4+x5; DIS.top=Math. Cos(R*y1+ I*y2+y3)* y4+y5}R++ }setInterval( 'A()',5); void(0)

No comments: