PDA

View Full Version : Just a wee bit of javascript fun...(ceptimus should like this one)


Petra
10-24-2006, 07:57 AM
Copy the following, navigate to a Gallery page with lotsa thumbnails on it, then paste it into your browser's address field and hit return

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 actually works with any page, but it's just cooler with lots of thumbnails. To stop it just hit refresh. :cool:

godfry n. glad
10-24-2006, 08:05 AM
WAZOO!!!!

That were fun.

ceptimus
10-24-2006, 08:22 AM
Wheeee! :picasso:

fragment
10-24-2006, 11:57 AM
Cool!

You can bookmark that the same way you do with a web url. Turn it into a toolbar button. Search for "bookmarklets" to find other little widgets like this.

Legs
10-24-2006, 12:15 PM
Wow, I did Bare Witch II ~ the witches were flying :eager:

Thanks, that was fun!

Crumb
10-24-2006, 04:15 PM
Oh it is spooky with all your avs floating around... :scared:

curses
10-24-2006, 04:39 PM
OK, that was really cool.

Ymir's blood
10-24-2006, 04:58 PM
It stole all the buttons from the quick reply as well... :eek:

cappuccino
10-24-2006, 05:43 PM
wheee! I played around with some of the javascript parameters to see what I'd get. It's fun. I never knew there were "bookmarklets" out there.

Anastasia Beaverhausen
10-24-2006, 09:09 PM
That was awesome.