DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Make Google Go Crazy,neet little javascript trick  (Read 32,193 times)

tinyvillager

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 444
Make Google Go Crazy,neet little javascript trick
« on: January 31, 2007, 11:41 PM »
Source: http://blog.outer-court.com/forum/84707.html


Go to google,clear your address bar and insert this

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

Try it with blogspot blogs too  :)
« Last Edit: January 31, 2007, 11:43 PM by tinyvillager »

jgpaiva

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
Re: Make Google Go Crazy
« Reply #1 on: January 31, 2007, 11:44 PM »
One note: do that while on the image results page. For me, it doesn't work anywhere else.

[edit] Actually, try it on THIS page. I'll be funner! :D [/edit]

tinyvillager

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 444
Re: Make Google Go Crazy,neet little javascript trick
« Reply #2 on: January 31, 2007, 11:47 PM »
:huh:

Works on the plain old google home page for me,I'm using Opera Browser.
The same with Blogger blogs

Ok,i had no idea,i thought this just work on google stuff,hmm.Neat,useless,but neat. 
« Last Edit: January 31, 2007, 11:49 PM by tinyvillager »

jgpaiva

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
Re: Make Google Go Crazy,neet little javascript trick
« Reply #3 on: January 31, 2007, 11:53 PM »
Works on the plain old google home page for me,I'm using Opera Browser.
This works on images, and it looks like it doesn't work with google on my locale (www.google.pt) as the google logo isn't an image. Mistery explained :)

Darwin

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,985
    • Gathering Badge
Re: Make Google Go Crazy,neet little javascript trick
« Reply #4 on: February 01, 2007, 03:35 AM »
Wow! It's actually much, much more impressive on this page than it is on the google main page. Nice. Kind of scary...
"Some people have a way with words, other people,... oh... have not way" - Steve Martin

app103

  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,888
    • Participated in NANY Challenge Six Times
    • Coding Snacks
    • Gathering Badge
    • Cody Award
    • Volunteers/Staff
Re: Make Google Go Crazy,neet little javascript trick
« Reply #5 on: February 01, 2007, 06:39 AM »
OMG...that looks insane on my website.

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: Make Google Go Crazy,neet little javascript trick
« Reply #6 on: February 01, 2007, 09:27 AM »
Here's the source where I saw it first: http://www.pouet.net/topic.php?which=3307&page=1&x=13&y=13 - looks pretty good on the http://pouet.net main page as well.
- carpe noctem

app103

  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,888
    • Participated in NANY Challenge Six Times
    • Coding Snacks
    • Gathering Badge
    • Cody Award
    • Volunteers/Staff
Re: Make Google Go Crazy,neet little javascript trick
« Reply #7 on: February 01, 2007, 12:57 PM »
The shorter version of the code from the link f0dder posted has a slightly different effect:

javascript:R=0;DI=document.images;function A(){for(i=0;i<DI.length;){DIS=DI[i++].style;DIS.position='absolute';DIS.left= (Math.sin(R+i/4)+1)*400;DIS.top=(Math.cos(R/2+i/4+1.6)+1)*400}R+=0.1}setInterval( 'A()',5);void(0)

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: Make Google Go Crazy,neet little javascript trick
« Reply #8 on: February 01, 2007, 01:02 PM »
Btw. neither versions work for me here on DC, with FF2... but work fine other places.
- carpe noctem

cthorpe

  • Discount Coordinator
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 738
Re: Make Google Go Crazy,neet little javascript trick
« Reply #9 on: February 02, 2007, 05:03 PM »
Make this line a link in your toolbar.

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()',50); void(0);

Click it multiple times to change speed.
« Last Edit: February 02, 2007, 05:06 PM by cthorpe »

Wordzilla

  • Forum Search Daemon
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 470
    • Programming School - Deluxe Bonus Medal
    • Participated in NANY Challenge Once
Re: Make Google Go Crazy,neet little javascript trick
« Reply #10 on: February 04, 2007, 01:28 AM »
cthorpe, I tried your code on DC forum pages on I saw smileys, cody coins, avatars and everything flying and whirling all over. Now that was FUN! ;D  :Thmbsup:

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Make Google Go Crazy,neet little javascript trick
« Reply #11 on: February 04, 2007, 02:14 AM »
why doesn't it work for me?  :(

nevermind i got it to work by right clicking in ff toolbar and saying add bookmark and pasting it into location field.
« Last Edit: February 04, 2007, 02:16 AM by mouser »

Wordzilla

  • Forum Search Daemon
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 470
    • Programming School - Deluxe Bonus Medal
    • Participated in NANY Challenge Once
Re: Make Google Go Crazy,neet little javascript trick
« Reply #12 on: February 04, 2007, 02:24 AM »
I'm using FF 2.0.0.1 and the trick works like magic.

Screenshot - 4_02_2007 , 1_19_42 PM.png

wyrwolf

  • It is what it is.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 38
Re: Make Google Go Crazy,neet little javascript trick
« Reply #13 on: February 09, 2007, 08:50 AM »
TOO COOL!
I tried to figure out an easy way to make it a clickable link to send in an email to friends, but no luck.
Easily the most awesome fun thing I've encountered here. Thanx!
It is what it is.

Original address: https://www.donationcoder.com/forum/index.php?topic=7285.0