I will show you how to make google.com make crazy. With a simple javascript code you’ll make the logo fly on the page. This works on many other sites though. It’s fun to try it on pages with lots of images, like google images search, flickr.com or even news.bbc.co.uk.
How does it work ?
You just go to the desired homepagee copy/paste the following code in the navigation bar of your browser and hit ‘Enter’. That’s all
Here’s a video to show the power of this javascript:
How To Make Google Go Crazy – video powered by Metacafe
The javascript code is:
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);
*update: you must replace the inverted commas from DIS.position=’absolute’; and setInterval(‘A()’,5); with real apostrophes (Shift+quotation marks on Windows)
The above code won’t work with copy/paste.
You need to replace ’ with ‘
you’re right, thanks for pointing out, I replaced the bogus code with the right one.
it was because of the blockquote tag, now I used code
Yeah, that’s it. I just realised my comment didn’t actually help much, either. But you knew what I meant…
wow dats kooooooooooooooooooool
very cool, but y i wont works on some web pages like this web page?
it works on this page, but the only images are the smiley faces
just try it
i forgot to say that they move like crazy in the upper part of the page, and not here on the bottom where the comments are
I can find many things that I look for here! Thank you very much!
That’s very cool use of Javascript.. thanks for the fun
u welcome
sry but i copy the javascript code and when i paste it nxt to google.com there is nothing can u help me please
you don’t paste it NEXT to google.com but instead of google.com, you overwrite the address
It doesn’t work for me. when I plug it into Firefox it does nothing, IE says page error at the bottom. What am I doing wrong? I plug it in replacing whatever address so…
ok the code has some wrong apostrophes
here’s the good one:
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);
i dont understand…i try..i try…it doesnt work…i`m mad
)
why?????????????