InsideGoogle

part of the Blog News Channel

Google Logo: Dance For Me, Baby!

Here’s a funny little hack: Someone figured out that a little bit of JavaScript can make the Google logo fly around your web browser. Just visit Google.com and paste this code in 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);

Watch it in action:

(via Beep Me > Digg)

Also worth mentioning: There’s a Google Doodle today for Valentine’s Day:

As more than one person has asked me today, where’s the “l” in Google? My guess: It’s the stem.

UPDATE: Looks like I was right. The stem of the strawberry is green for a reason.

UPDATE 2: Gawker adds the missing “l”, in the form of a chocolate-covered pickle. Hilarious.

February 14th, 2007 Posted by Nathan Weinberg | Doodles, Culture, Humor, General | 5 comments



Hosting sponsored by GoDaddy

5 Comments »

  1. Yeaahhh, just be warned… I don’t think pasting in random snippets of javascript is a good idea for the average user, especially on Google.com. I’d personally put in a little disclaimer that this is not a good idea in general. But that’s just me.

    And about the pickle… It sounds like Google got pregnant after valentine’s day >_>

    Comment by Tim | February 15, 2007

  2. I can’t hemp but agree with Tim but that is very cool nonetheless. Also, i have been seeing a lot of post about the “googe,” people are so trivial…

    Comment by DanMac | February 15, 2007

  3. I saved this from a digg back in October:

    http://digg.com/programming/Funky_JavaScript_works_on_all_websites_even_digg

    btw, it works for all sites, not just Google

    Comment by BillyG | February 17, 2007

  4. google’s hidden private project
    see http://devshots.com

    Comment by Dave | March 8, 2007

  5. […] actually pretty sweet. Last year’s Doodle was a mess, with a lot of sites reporting that Google had forgotten the “l” in […]

    Pingback by » Valentine’s Day Google Doodle » InsideGoogle-part of the Blog News Channel | February 14, 2008

Leave a comment