Trippy java stuff

Started by SinSin, Mon 06/11/2006 17:15:56

Previous topic - Next topic

SinSin

Simply paste this link into your address bar
Lilemx found it so i wont take credit

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);
Currently working on a project!

Mr Flibble

I came across this on StumbleUpon a while back. It's utterly useless but rather pretty.
Ah! There is no emoticon for what I'm feeling!

Hinders

Uhm.. nothing seems to happen  ???
----

Tuomas

yeah, I don't get it... ???

Mr Flibble

The code takes all the images on a page and makes them orbit around an arbitary point in a trippy 3D circle.. thing.

I'd warrant you need Firefox for it, somehow I can't picture IE coping too well with javascript. </prejudice>
Ah! There is no emoticon for what I'm feeling!

Domino

That was kind of interesting. A neat little effect that most people might enjoy. Enough of a distraction to get a COOOOLLLLLL out of me.  :)

Hinders

Ah, i tried to do it in an empty FF tab, worked fine now  :=
----

Tuomas

I see. While I opened a new tab because I wanted to keep this one up. No wonder it didn't work on a blank page.

skyfire2

Heh, that's pretty cool.

monkey0506

It's interesting...but what's more interesting is how everyone tried doing it in an empty FF tab (i.e., I too tried the empty tab method :=).

SMF spam blocked by CleanTalk