PDA

View Full Version : fun with java script



Siobhan
09-01-2007, 12:42
I like this.. great if the page has lots of pics

1. Open up a web page that has pictures on it. (this will work for most)
Examples : www.google.com , www.cnn.com , www.worth1000.com

2. Clear the address bar.

3. Copy and paste the following Javascript 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.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; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterv al('A()',5); void(0);



PS.. try the Worth1000 is has lots of pics

CrazyLea
09-01-2007, 15:38
Nothing's happening with me :searchme:?

Siobhan
09-01-2007, 15:47
that is strange.. when I use the code (same as above) from my email i got this in, it works.. but when I use the code from above, it doesn't work

I have tried this for another site and it works there.. do you know why it is not working TM??

Debs
09-01-2007, 16:50
we had this on another site i go on and it didnt work until something else was added!

ill havea look and see what it was!

Jada-GDR
27-01-2007, 18:14
i can't see anything... can you take a screenshot?