Internet explorer users
Internet explorer users
Author
Discussion

sadako

Original Poster:

7,080 posts

267 months

Sunday 8th October 2006
quotequote all
Paste this into your address bar

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

Hit enter



Edited by sadako on Sunday 8th October 13:29

jellebabe

8,824 posts

245 months

Sunday 8th October 2006
quotequote all
Bizarre!

Matt1986

3,278 posts

244 months

Sunday 8th October 2006
quotequote all
how do they do that?

sadako

Original Poster:

7,080 posts

267 months

Sunday 8th October 2006
quotequote all
Works really well on a page with lots of small images, like the mainpage of fark.com, or the b3ta image challenges

anonymous-user

83 months

Sunday 8th October 2006
quotequote all
By hitting enter it speeds it up and slows it down wobble

wn3

294 posts

248 months

Sunday 8th October 2006
quotequote all
Works on Firefox, too.

drogo

802 posts

246 months

Sunday 8th October 2006
quotequote all
Works with Mac OSX and Safari as well, spooky.

What's it for? wobble

ATG

23,705 posts

301 months

Sunday 8th October 2006
quotequote all
I'd say it was lifted from a snippet of Javascript that was doing the rounds maybe 5 yrs ago ... it displayed a sort of analogue clock that followed your mouse pointer round the screen in that sort of follow-the-leader sort of way.

Pigeon

18,535 posts

275 months

Sunday 8th October 2006
quotequote all
Works in Opera/Linux too. And if you play with multipliers to the arguments of the cos and sin functions you can make Lissajou's figures.

nicecupoftea

25,586 posts

280 months

Sunday 8th October 2006
quotequote all
Doesn't do anything for me either in IE or FF. What's it supposed to do?

ferrisbueller

30,312 posts

256 months

Sunday 8th October 2006
quotequote all
Ooooh! We like!

ferrisbueller

30,312 posts

256 months

Sunday 8th October 2006
quotequote all
Pigeon said:
Works in Opera/Linux too. And if you play with multipliers to the arguments of the cos and sin functions you can make Lissajou's figures.


Sometimes Pigeon, you scare me. Just a little, but scare all the same

PoD does as well.

It must be an avian thing.

thepassenger

6,962 posts

264 months

Sunday 8th October 2006
quotequote all
nicecupoftea said:
Doesn't do anything for me either in IE or FF. What's it supposed to do?


Makes all .gif & .jpg files on a page fly around in the top left of the browser window. It's best to head for an image heavy page before trying it, gassing station doesn't have a lot of piccies for it to work with.

Frik

13,679 posts

272 months

Sunday 8th October 2006
quotequote all
Do not, I repeat, do not attempt to do this with a hangover...

sadako

Original Poster:

7,080 posts

267 months

Sunday 8th October 2006
quotequote all
You need to have a page loaded before it will work, it wont work in a new tab. And yes, working in FF, I tend to paste links into new tabs by default now

Bodo

12,595 posts

295 months

Sunday 8th October 2006
quotequote all
Must be clean js. Works in Firefox on Linux too

I recommend this page for trying:
www.pistonheads.com/gassing/legend.htm wobble

killer2005

20,591 posts

257 months

Sunday 8th October 2006
quotequote all
Thats cool

Sharief

6,537 posts

245 months

Sunday 8th October 2006
quotequote all
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.tan(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0);

Better?

David A

3,725 posts

280 months

Sunday 8th October 2006
quotequote all
C'mon if you lot were any good you'd have done a whirlpool with the images disappearing into the middle of the page by now.

cos I sure as hell can't

sadako

Original Poster:

7,080 posts

267 months

Sunday 8th October 2006
quotequote all
Sharief said:
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.tan(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0);

Better?


I quite like that