02-08-2007, 01:42 PM | #1 (permalink) |
Human
Administrator
Location: Chicago
|
Make Google Go Crazy
Here's what you need to do to make Google go crazy:
1. Go to Google.com 2. Remove everything from the address bar, then copy & paste the following into it: 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); 3. Hit enter. Enjoy. This works on other sites too. A couple good ones are... Amazon.com Flickr.com Destructoid.com (best one I've seen so far)
__________________
Le temps détruit tout "Musicians are the carriers and communicators of spirit in the most immediate sense." - Kurt Elling |
02-08-2007, 01:48 PM | #2 (permalink) |
paranoid
Location: The Netherlands
|
I'm not in the habit of pasting random bits of code anywhere, but I assume this places the images on the site in question all across the window?
__________________
"Do not kill. Do not rape. Do not steal. These are principles which every man of every faith can embrace. " - Murphy MacManus (Boondock Saints) |
02-08-2007, 01:53 PM | #3 (permalink) |
Junkie
Location: The True North Strong and Free!
|
makes them fly around, pretty neat
__________________
"It is impossible to obtain a conviction for sodomy from an English jury. Half of them don't believe that it can physically be done, and the other half are doing it." Winston Churchill |
02-08-2007, 03:09 PM | #4 (permalink) |
Lover - Protector - Teacher
Location: Seattle, WA
|
For those of you who are Code geeks like me, or if you're curious what's happening, I spaced it out to be more readable.
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); becomes... Code:
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);
For some fun, try manipulating R; it effects the speed of rotation; If you make R increment by 0.05 instead of 1, you get: 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+=0.05}setInterval('A()',5); void(0); Sloooooooowwwwwwwwwwww rotation. If you make R 2 you get: 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+=2}setInterval('A()',5); void(0); Speedy! .. I have too much free time on my hands.
__________________
"I'm typing on a computer of science, which is being sent by science wires to a little science server where you can access it. I'm not typing on a computer of philosophy or religion or whatever other thing you think can be used to understand the universe because they're a poor substitute in the role of understanding the universe which exists independent from ourselves." - Willravel Last edited by Jinn; 02-08-2007 at 03:12 PM.. |
02-08-2007, 10:52 PM | #7 (permalink) |
Squid hat!
Location: A Few Miles Away From Halx
|
This is genius! Particularly cool on sites with a ton of small icons like De&mo@no^id (screw you search engines, and we're not handing out invites either!!!)
__________________
Like TFP? Donate To Keep It Alive!! |
Tags |
crazy, google, make |
|
|