
Originally Posted by
ronscores

Originally Posted by
tesco
It's just what that js code does.
It finds all <img> tags on the page then starts moving them around.
You can change the code to do any other tag as well like div, span, strong, table, a, etc.

Real awesome.
You a java coder btw?
javascript != java.
-=-=-
We once toyed with the idea of screwing up someone else's start page in their browser with a script like that, as a practical joke, like.
Was gonna put the original page in a frame, or use it as the source for an object, and then stick that in a new page and add the script to it. Maybe calling it onload, with a bit of a delay so it looked normal first. Just never got around to it.
You can mess around a bit with the numbers in the equation and positioning, as well.
Code:
javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=1000; 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)
changes its position.
Code:
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*x3+x3)*x4+x5)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',50); void(0)
Makes them move in another pattern. etc.
Bookmarks