• Welcome to AlpineZone, the largest online community of skiers and snowboarders in the Northeast!

    You may have to REGISTER before you can post. Registering is FREE, gets rid of the majority of advertisements, and lets you participate in giveaways and other AlpineZone events!

Fun with Javascript

BeanoNYC

Active member
Joined
Feb 6, 2005
Messages
5,080
Points
38
Location
Long Island, NY
1) Copy the following code:

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

2) Click on gallery in the AZ navigation bar above (if your lazy you can just skip to the third step)

3) Paste it in the address bar of your browser
 
Last edited:

Greg

Moderator
Staff member
Moderator
Joined
Jul 1, 2001
Messages
31,154
Points
0
Must be a Mac thing...
 

Greg

Moderator
Staff member
Moderator
Joined
Jul 1, 2001
Messages
31,154
Points
0
Nada. How about a screenshot?
 

bvibert

Moderator
Staff member
Moderator
Joined
Aug 30, 2004
Messages
30,394
Points
38
Location
Torrington, CT
I dunno...here's the link I got it from. Maybe it's not pasting correctly.

Pretty nifty...

Try this:
Code:
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);
 
Top