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?

8 Responses to “Give Google A Spin”
  1. Pinksy says:

    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…

  2. Pinksy says:

    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…

  3. Chris says:

    And they told us WP 2.1 has a true WYSIWYG editor!

    They lied!

    Oh well, it wasn’t that amusing…. :-(

  4. Pinksy says:

    You can also play about with the numbers, and make it rotate differently…

  5. 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.

  6. Claire says:

    i tried this, it wouldn’t work for me.
    so off to try pinksy’s link.

  7. Claire says:

    ok i am stupid,it still didn’t work!
    although i am not sure what its meant to do?

  8. Chris says:

    It makes the images & text dance about the screen.

    It’s not that great (wishing I hadn’t posted) ;-)

  9.  
Trackbacks
  1.  
All content © Chris Lodge 2006-2010