A great little tip from Google Blogoscoped: Visit Google and then clear the address bar, and paste the following in:
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 & watch the fun! Just navigate away to stop it – anyone know why this happens?




Entries (RSS)
It doesn’t work if you copy and paste from your excerpt, but it does if you get it from the Google Blogoscoped link: http://blog.outer-court.com/archive/2007-01-31-n71.html.
Actually, you can get a better effect if you try it with a page of Google images of your choice!
It’s just some funky Javascript to juggle round the images based on some maths…
I had the same problem posting the code a while back, and gave up in the end! I think it maybe something to do with WordPress adding some extra line feeds or something…
And they told us WP 2.1 has a true WYSIWYG editor!
They lied!
Oh well, it wasn’t that amusing….
You can also play about with the numbers, and make it rotate differently…
For some reason, trying to make my computer behave badly on purpose strikes me as wrong. Particularly when it behaves badly all by itself so often.
i tried this, it wouldn’t work for me.
so off to try pinksy’s link.
ok i am stupid,it still didn’t work!
although i am not sure what its meant to do?
It makes the images & text dance about the screen.
It’s not that great (wishing I hadn’t posted)