Home » Appearance, General, Tutorials

How to: Make images go crazy in a browser

6 May 2008 791 views One Comment



So, basically this nifty little piece of JavaScript will make all the images dance around on any website currently open in the browser. All you need to do is to insert the following code into the address bar and press enter:

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);

This won’t harm the site or your browser and you can close it and reopen to view it normally.

If you feel very angry, you can use netdisaster.com or a similar page that will literally “tear” a site up. Netdisaster has various tools to destroy a site with, from chainsaws to cow dung. So if you are very angry at a site (like winxptricks2008.blogspot.com that copies my posts) you might want to have a good old revenge with a nuke or some dinosaurs.

More Cool Windows XP Tips & Tricks HERE!

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

One Comment »

  • MUTU said:

    THIS IS COOL!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.

CommentLuv Enabled