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?

1 Star2 Stars3 Stars4 Stars5 Stars (5 votes, average: 3.40 out of 5)
Loading ... Loading ...



5 Comments to “Make Webpages Go Crazy”

Post a reply to to “Make Webpages Go Crazy”

NOTE: Inappropriate commments will be removed. Please be courteous to others.

Since spambots sometimes comment on jokes, please follow the instructions and answer in the box below: