Stick This in Your URL Bar
14 years ago
General
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);
FA+

Props to the creator.
// this means it's javascript that can be executed from your URL bar!
javascript:
//invoke variables
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"); //gets all the images on the page in the form of an array
DIL=DI.length; //the length of the array of images
function A() //make a funtion
{
for(i=0; i-DIL; i++) / i starts at 0, and for every iteration, subtract the length of the array of images from i's current value, then add 1 to i, is an infinite loop
{ //Javascript CSS manipulation up ahead.
DIS=DI[ i ].style; //get the style infomation from the current image
DIS.position='absolute'; // set the position property to absolute positioning
DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px"; //set the left property to the sine of some crazy math, append px to the end, px is pixels by the way.
DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"; //set the top property to some crazy cosine stuff, append px to the end
} DO IT AGAIN, DO IT AGAIN
R++; add one to R
} // end function
setInterval('A()',5); //this fun funtion makes the funtion A() execute every .05 seconds
void(0); // this always goes in URL javascript
See, not that hard!
I only have experience with Actionscript 3 because of my school's shitty computer-based courses.
Are you taking a class for this or something?
http://www.youtube.com/watch?v=qVCFV7jT9ho
Ponies!