topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 8:34 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

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

tinyvillager

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 444
    • View Profile
    • Donate to Member
Make Google Go Crazy,neet little javascript trick
« on: January 31, 2007, 05:41 PM »
Source: http://blog.outer-co...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, 05:43 PM by tinyvillager »

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: Make Google Go Crazy
« Reply #1 on: January 31, 2007, 05: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
    • View Profile
    • Donate to Member
Re: Make Google Go Crazy,neet little javascript trick
« Reply #2 on: January 31, 2007, 05: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, 05:49 PM by tinyvillager »

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: Make Google Go Crazy,neet little javascript trick
« Reply #3 on: January 31, 2007, 05: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,984
    • View Profile
    • Donate to Member
Re: Make Google Go Crazy,neet little javascript trick
« Reply #4 on: January 31, 2007, 09:35 PM »
Wow! It's actually much, much more impressive on this page than it is on the google main page. Nice. Kind of scary...

app103

  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,884
    • View Profile
    • Donate to Member
Re: Make Google Go Crazy,neet little javascript trick
« Reply #5 on: February 01, 2007, 12:39 AM »
OMG...that looks insane on my website.

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Make Google Go Crazy,neet little javascript trick
« Reply #6 on: February 01, 2007, 03:27 AM »
Here's the source where I saw it first: http://www.pouet.net...=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,884
    • View Profile
    • Donate to Member
Re: Make Google Go Crazy,neet little javascript trick
« Reply #7 on: February 01, 2007, 06:57 AM »
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

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Make Google Go Crazy,neet little javascript trick
« Reply #8 on: February 01, 2007, 07:02 AM »
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
  • c++thorpe
    • View Profile
    • Donate to Member
Re: Make Google Go Crazy,neet little javascript trick
« Reply #9 on: February 02, 2007, 11:03 AM »
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, 11:06 AM by cthorpe »

Wordzilla

  • Forum Search Daemon
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 470
  • Two there should be; no more, no less.
    • View Profile
    • FreeThesaurus.net - The Free Online Synonym Finder
    • Read more about this member.
    • Donate to Member
Re: Make Google Go Crazy,neet little javascript trick
« Reply #10 on: February 03, 2007, 07:28 PM »
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,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Make Google Go Crazy,neet little javascript trick
« Reply #11 on: February 03, 2007, 08:14 PM »
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 03, 2007, 08:16 PM by mouser »

Wordzilla

  • Forum Search Daemon
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 470
  • Two there should be; no more, no less.
    • View Profile
    • FreeThesaurus.net - The Free Online Synonym Finder
    • Read more about this member.
    • Donate to Member
Re: Make Google Go Crazy,neet little javascript trick
« Reply #12 on: February 03, 2007, 08:24 PM »
I'm using FF 2.0.0.1 and the trick works like magic.

Screenshot - 4_02_2007 , 1_19_42 PM.pngMake Google Go Crazy,neet little javascript trick

wyrwolf

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 38
  • It is what it is.
    • View Profile
    • banner page
    • Donate to Member
Re: Make Google Go Crazy,neet little javascript trick
« Reply #13 on: February 09, 2007, 02: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.