Log in

No account? Create an account
entries friends calendar profile Previous Previous Next Next
Just for a giggle... - Ed's journal
Just for a giggle...
Try entering this into your url 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.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's javascript, so don't worry, it can't do anything horrible.
12 comments or Leave a comment
mister_jack From: mister_jack Date: December 1st, 2006 02:11 pm (UTC) (Link)
Heh. Cool.

Would you mind putting it behind a cut so it doesn't bollox up the width on all our friends pages?
sobrique From: sobrique Date: December 1st, 2006 02:13 pm (UTC) (Link)
Already fixed the PRE tags.
mister_jack From: mister_jack Date: December 1st, 2006 02:19 pm (UTC) (Link)
warmage From: warmage Date: December 1st, 2006 02:14 pm (UTC) (Link)
Should this be part of the ACID test? :)
nicolyrezk From: nicolyrezk Date: December 1st, 2006 02:57 pm (UTC) (Link)
Oh that's just silly.
hedya From: hedya Date: December 1st, 2006 03:06 pm (UTC) (Link)
my eyes HURT!

Is that the famous "friday - last day at this job ever" mood? :)
siryel From: siryel Date: December 1st, 2006 03:34 pm (UTC) (Link)
Pertty... ;-)
ihilate From: ihilate Date: December 1st, 2006 08:35 pm (UTC) (Link)
Nothing seems to happen.

Oh well, maybe I'll try it when I'm sober...
sobrique From: sobrique Date: December 1st, 2006 10:19 pm (UTC) (Link)
It needs to be done on a page that has images.
phyrbyrd From: phyrbyrd Date: December 1st, 2006 10:41 pm (UTC) (Link)
It made my width bar go up and down lots of times. Is it meant to do that?
dmh From: dmh Date: December 2nd, 2006 04:30 pm (UTC) (Link)
That's quite natty. :o)
jambon_gris From: jambon_gris Date: December 3rd, 2006 11:59 am (UTC) (Link)
The first thing that crossed my mind was why no use exponentials rather than cos and sin, but of course java script doesnt do imaginary numbers with out a lot of prodding and poking.
12 comments or Leave a comment