PDA

View Full Version : Make Images Fly Around


blondie
06-14-2009, 10:10 PM
Just javacode. Not sure if I posted this before

Go somewhere with a few images, like:

http://s193.photobucket.com/albums/z280/VDominusV/

Then paste this code in your browser address and hit go:

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


Should this go in General? I don't care.

BlackAce5
06-14-2009, 10:30 PM
GHOSTS!!!!! lol i had to catch post reply button :(

DaMan
06-14-2009, 10:32 PM
Someone told me about this like 2 years ago. D:

lol

Rubix
06-15-2009, 03:09 AM
This is verrrrrrry old

JediLucas5
06-15-2009, 02:38 PM
Never have seen this before awesome.

Darkthought
06-15-2009, 06:46 PM
First time I've seen it as well.