Best Java script ever

Baal

Tank
Joined
Sep 22, 2003
Messages
4,357
Reaction score
1
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++}setInterval('A()',5); void(0);

Just copy and paste into your address bar.

May I suggest this as a nice testing page.

btw, the more you enter the code the faster (and eventually slower) it will go.
 
I must thank you for that cat page. Some awesome pics there.
Not for your gay js though because its useless and annoying.
 
Spins you right round, like a record, Dalamari
 
I like this script. I don't undestand the for loop though. Look at this:

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++
}

setInterval('A()',5); void(0);



Why does it say i-DIL ?? Why not i < DIL (total number of images) ?? I tried both ways and both ways work - I just don't understand why the first way works !!
 
Don't do it, it downloads spyware onto your PC and then formats your harddrive.
 
Heh, back in my Uni days I made a DHTML flash-type 'engine' that could make flash type animations with no plugin/player needed. It was terribly complicated, needed a page full of numbers just for one animation, and wasn't very browser friendly. Didn't even submit it in the end. Still, I bet you'd find a similar page of numbers if you cracked open a .swf file.
 

Similar threads

Back
Top