Help - Search - Members - Calendar
Full Version: Messing With Google.com
BleepingComputer.com > Software > Tips and Tricks
   
Amazing Andrew
Go to Google's main page.

Copy the following javascript into your address bar and press enter:

java script: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);

Have Fun!


Okay, some weirdness with the forum makes the "javascript" part of the code into "java script". Just remove the extraneous space.
jhsmurray
I almost fell out of my seat hysterical.gif
gaming freakz
Great one there.! smile.gif
drunkle
QUOTE(jhsmurray @ Sep 5 2007, 08:09 AM) *
I almost fell out of my seat hysterical.gif


Me Too! That was pretty cool.

drunkle
Raker
thumbup.gif Cool! Can't stare at it too long or I'll get motion sickness!
BlackSpyder
thats cool!! thumbup.gif
Amazing Andrew
Have some fun and try it on other websites. Like web.archive.org
Amazing Andrew
Also,
www.microsoft.com!
www.dowjones.com

Add you're own!
eXPeri3nc3
Doesn't work with Google. It worked when I try google images tho huh.gif
Leon Siria
QUOTE(Amazing Andrew @ Sep 5 2007, 05:33 AM) *
Go to Google's main page.

Copy the following javascript into your address bar and press enter:

java script: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);

Have Fun!


Okay, some weirdness with the forum makes the "javascript" part of the code into "java script". Just remove the extraneous space.

Cool :thumbup2:It worked only on the Google images page not on the main web page. What does the code mean,anyway?
Amazing Andrew
QUOTE(Leon Siria @ Sep 14 2007, 06:44 AM) *
Cool thumbup2.gif It worked only on the Google images page not on the main web page.
That's weird. It works for me on a number of pages, including Google's main page. It may depend on your browser, though. I tried in in Firefox and IE7
QUOTE(Leon Siria @ Sep 14 2007, 06:44 AM) *
What does the code mean,anyway?


CODE
java script:

this lets the browser know that what follows is a javascript function. It's like http:// or ftp:// but only it's java script:[br]
CODE
R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200;

Here, we're declaring a few variables and their values.
CODE
DI=document.images; DIL=DI.length;

Here we're decalring two more variables that correspond to all the images on the page. DI.length refers to how many images their are.
CODE
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);

Here's the meat of the action! It's a bunch of gobbledegook to me, but I gather that it is manipulating the images positions via position.absolute in conjuntion with some knarly mathematical operations. (guess what? you can replace Math.sin and Math.cos with any javascript Math function!)
CODE
void(0);

this part kills any leftover data so that the page doesn't reload.
mlbrown
cool find thumbup.gif
delbertfanuncio
this is cool! i will definitely share this to with my friends smile.gif
skyfuser
HAHAHAHAHA. Thanks for this! This is hilarious. My mom nearly caught be doing irrelevant stuff because I was stifling my laughter hysterical.gif hysterical.gif hysterical.gif hysterical.gif hysterical.gif hysterical.gif
DarkNight
lol,it is quite cool!!
at the moment,all the image from here are flying as I type,lol

;D
jkilmnop
can you do that with any webpage, given you enter the right info?
Amazing Andrew
Most web pages, yes. Some just plain don't work, though.
skyfuser
I was messing around with it (my friends couldn't stop laughing either hysterical.gif ) and I learned that an excellent tornado forms if you go to https://www.cia.gov/library/publications/th...ok/geos/xx.html
Mind you, they're the same pictures, but still looks interesting nonetheless :D
paige3663
Hmmm
I'm not sure what other people are seeing
What freaked me out was it showed me the exact address I lived in as a kid
Where I haven't lived in almost 30 yrs
wtf???

That was when I went to google.COM

Now everytime I try going to google.com, I'm being redirected to google.CA

Oh so i'm in Canada and I don't have a choice?
bummer
TheBigBoss
what happen guys ?nothing came out from but a bunch of pages with that code >? what's the funny part about it ?
TVT
Did you paste the code in the search box? Or the address bar?
bobert14
nothing happend for me
paige3663
QUOTE(TVT @ Dec 3 2007, 06:28 PM) *
Did you paste the code in the search box? Or the address bar?

the address bar
lhamil64
lol if you go to my site and click enter and do it, it looks awesome!
my site is lhamil64.netfast.org
trashcan7
This is awesome
skyfuser
It's even more fun if you tweak the numbers inside the whole javascript. Lots of... interesting things happen.
2HOT4U
Nothing happened for me either. I tried it in the search bar and the address bar. I really want to see what everyone is laughing at!
Teenage.Zombiee
cool.gif laugh.gif That wasa really awesome :D

Where did you find it?
Amazing Andrew
QUOTE(2HOT4U @ Jan 9 2008, 10:04 PM) *
Nothing happened for me either. I tried it in the search bar and the address bar. I really want to see what everyone is laughing at!


Fear not, citizen! The Amazing Andrew has created a brief video of the hilarity: http://www.youtube.com/watch?v=NkxcXpdmMQw
2HOT4U
Thank you Amazing Andrew! Now I don't feel left out. I wonder why it doesn't work for some of us?
skyfuser
Did you get rid of the space between java and script in the address bar?
paige3663
Thanks Andrew thumbup.gif
twiztidjuggalo666
everyone must do this on youtube its awsome
Doctor Inferno
hmmm... it didn't work for me....
Teenage.Zombiee
You need to delete the space between javascript as it (for some reason) shows up as java script.
bojigga
wow this is the coolest. thumbup.gif
DjayAdx
This is fun!! Thanks for this one Amazing Andrew!
KingOfIdiocy
If you keep pressing the GoTo address arrow, it moves faster.

Here is the slightly modified version I used.(Don't forget you may need to delete the space which appears between java and script)


java script:R=0; x1=.1; y1=.05; x2=.75; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=150; 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);
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.