Coolest Trick Ever To Muck Up A Webpage

Tuesday, August 26th, 2008 | Neat Tricks

Ok so load a page with a bunch of images. Then go to the address bar and paste this in:

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

It won’t move all images, but a lot of them will start floating around. Works on a majority of sites (though not well on my main page due to how I position them.

The best place I found this to work was on my own myspace profile in firefox. It’s cooler in firefox since I have all of the images hidden underneath my background. So with this trick it brought all the pictures of friends and junk in my comments up and made it float.

Try it. Go to: http://myspace.com/trimidum then paste above code into address bar and hit enter.

No comments yet.

Leave a comment

Comment spam protected by SpamBam