View Full Version : Javascript fun


GingerTheCat
11-29-2006, 12:37 PM
I would normally advise people never to be so stupid as to type in a series of gobbledegook they don't understand into their computer as it is surely the quickest route to misery. But for those of you foolish enough to try it I can highly recommend this.

It's not rude, hacking or anything but fun and doesn't do anything permanent to your computer:

1. Go to a website of your choice - www.bbc.co.uk is a good site for this

2. Paste all of this javascript into the address bar

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


3. Hit return and enjoy the results :-)

4 You can refresh to reset, or move to another site


Mike

Kev
11-29-2006, 12:46 PM
That's fun :PDT_Aliboronz_24:

FKoE
11-29-2006, 05:51 PM
whey hey!!! that was boss.. cheers for that :)

:PDT_Aliboronz_24:

lindylou
11-30-2006, 05:43 PM
What does it do ?? It didn't work for me.

FKoE
11-30-2006, 06:14 PM
What does it do ?? It didn't work for me.


It makes all the pictures do weird things :D

john
11-30-2006, 08:36 PM
Try Yo Liverpool :)

Kev
11-30-2006, 08:38 PM
have done, its funny

Kev
11-30-2006, 08:44 PM
http://static.flickr.com/116/310515870_2dc10ace84.jpg (http://www.flickr.com/photos/ijob/310515870/)


http://static.flickr.com/120/310515771_27ea0568b4.jpg (http://www.flickr.com/photos/ijob/310515771/)

MissInformed
12-01-2006, 09:00 AM
great fun!! :) :)

scouserdave
12-07-2006, 12:06 PM
Can't recall doing this! I was searching for something else on my hard drive. LOL!
http://www.liverpoolpictorial.co.uk/newyear/