Thermal

Its just a lot of hot air…
XML Feed


31
Jan

Give Google A Spin

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?

Some Totally Unrelated Posts

Readers who viewed this page, also viewed:

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. The Curmudgeon Says:

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

Leave a Reply

Readers who viewed this page, also viewed:

Powered by Wordpress 2YI.net Web Directory