Make Webpages Go Crazy
A neat little javascript trick that’ll chew up and spit out all the images on a web page. Just copy and paste this code into your browser bar for any page you happen to be viewing (like this one) and press go. Neato.
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()’,5); void(0);
PS - a reminder that this moves images around (obviously). So, the more images the neater it gets.
What'd You Think?

(4 votes, average: 4 out of 5)
August 26th, 2007 at 2:22 am
WHOA!!! thats crazy. and cool.
August 29th, 2007 at 12:18 pm
That is a very cool trick
September 7th, 2007 at 10:03 pm
Funny trick =)
September 20th, 2007 at 9:50 am
That’s awesome!
December 14th, 2007 at 2:49 pm
i couldnt get it to work