Monday, February 05, 2007

Mindless Web Browser Fun

Go to any webpage (preferably one with not too many images), clear the address bar on your browser (where you type in the URL or http address to get to a website), and copy and paste the text below into the address bar. It should be continuous, with no carriage returns (the text is just wrapping on your browser, but is really one big long string). Then hit "Enter", and watch the fun start.

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.images; 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;*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0);

As fun as it is, this is yet another reason why you shouldn't trust javascript showing up unexpectedly anywhere, it can reek havoc on your computer.

1 comment:

Foxy said...

I thought it wasn't working, but then realized that I'm in Firefox and it might work in IE... indeed, le whee!