PDA

View Full Version : Windows XP: Javascript Magic Tricks


Hitterman
27-05-08, 08:18 PM
I found this trick at google and would like to share with your all.

Moving images
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.getElementsByTagName("img"); 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)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}se tInterval('A()',50); void(0);
Paste this code in the address box of your browser in your current window
see this also (http://www.youtube.com/watch?v=lBgqRh_ZnkM)

lyoko321
14-08-08, 07:30 AM
Haha that is funny. I tried it out and it's awesome thanks. :D

chetan0304
14-08-08, 12:50 PM
Hey it works with Firefox? no:(

shkhanal
11-09-08, 01:03 PM
I tried it with on my browser but did not see any effect. I'm using FF3.

$Hero$
11-09-08, 08:50 PM
ya its not working....:(:(

metallicafx
11-09-08, 09:42 PM
hmm cool

dontbegaexd
06-01-09, 08:07 AM
doesnt really work for me :confused:

avi123r
06-01-09, 12:33 PM
all javascripts are very funny