Troll Kingdom

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Paste this into firefox.

Mentalist

Administrator
Staff member
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 might be more interesting if you show the banner at the top of the page before you do it.
 
I can't figure it out!

crybaby.jpg
 
They swirl according to sin(R*x1+i*x2+x3)*x4+x5)+"px (px= pixels i believe) and cos(R*y1+i*y2+y3)*y4+y5)+"px"

the values for the Ys and Xs are x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200

Mess with them as much as you like and you get a different effect.
 
Back
Top