0

Check this out. Open up any website (one with many pictures is better) and, after loading it, paste this code in the address bar:

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++}setInterval('A()',50); void(0);

:)

19
Contributors
23
Replies
24
Views
10 Years
Discussion Span
Last Post by susheelsundar
0

Crazy Java Command

Now, 'Stein, you ought to know by now that Java is not the same as Javascript. :)

Nice script, though...

0

Check this out. Open up any website (one with many pictures is better) and, after loading it, paste this code in the address bar:

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++}setInterval('A()',50); void(0);

:)

:eek: Nice.Nice.:) And many underestimate the power of JavaScript ;)

0

Yeah gets hold of all the image elements on the page in an array and starts manipulating the properties like its x and y coordinates.

But still its the idea that counts, good one.

0

Ah.. i had came across this thing long time ago. Are there any more fun scripts available on web?

0

ha! Try to click on the images that are buttons... lol.

I also found that if you do it a second time it does it faster.

0

:eek: Nice.Nice.:) And many underestimate the power of JavaScript ;)

When you are good in math imagination, you are a king with even a jerk computer language.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.