Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Messing With Google.com


  • Please log in to reply
53 replies to this topic

#1 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,070 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:07:26 PM

Posted 05 September 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.

Edited by Amazing Andrew, 05 September 2007 - 05:38 AM.

Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
x.png
Boredom Software Stop Highlighting Things

BC AdBot (Login to Remove)

 


#2 jhsmurray

jhsmurray

  • Members
  • 383 posts
  • OFFLINE
  •  
  • Location:6,378 km above the Earth's core
  • Local time:10:26 PM

Posted 05 September 2007 - 08:09 AM

I almost fell out of my seat :thumbsup:

Acer Aspire 5732z
OS: Windows 7 Ultimate
Processor: Intel Pentium III Xeon, 2200 MHz
RAM: 3 GB
Display: Mobile Intel GMA 4500M

#3 gaming freakz

gaming freakz

  • Members
  • 33 posts
  • OFFLINE
  •  
  • Location:India
  • Local time:07:56 AM

Posted 06 September 2007 - 12:17 PM

Great one there.! :thumbsup:
By the time you have read this.....you have wasted 3 seconds of your life.

#4 drunkle

drunkle

  • Members
  • 91 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:the Big O!
  • Local time:08:26 PM

Posted 06 September 2007 - 05:47 PM

I almost fell out of my seat :thumbsup:


Me Too! That was pretty cool.

drunkle
"Finished products are for decadent minds." --Asimov
"Cogito ergo sum." --René Descartes

#5 Raker

Raker

  • Members
  • 40 posts
  • OFFLINE
  •  
  • Local time:10:26 PM

Posted 09 September 2007 - 08:58 PM

:thumbsup: Cool! Can't stare at it too long or I'll get motion sickness!

#6 BlackSpyder

BlackSpyder

    Bleeping Big Rig


  • BC Advisor
  • 2,443 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Huddleston, VA USA (Home Sweet Home)
  • Local time:09:26 PM

Posted 09 September 2007 - 09:52 PM

thats cool!! :thumbsup:

Posted Image




#7 Andrew

Andrew

    Bleepin' Night Watchman

  • Topic Starter

  • Moderator
  • 8,070 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:07:26 PM

Posted 10 September 2007 - 05:56 AM

Have some fun and try it on other websites. Like web.archive.org

Edited by Amazing Andrew, 10 September 2007 - 05:57 AM.

Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
x.png
Boredom Software Stop Highlighting Things

#8 Andrew

Andrew

    Bleepin' Night Watchman

  • Topic Starter

  • Moderator
  • 8,070 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:07:26 PM

Posted 10 September 2007 - 06:00 AM

Also,
www.microsoft.com!
www.dowjones.com

Add you're own!

Edited by Amazing Andrew, 10 September 2007 - 06:16 AM.

Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
x.png
Boredom Software Stop Highlighting Things

#9 Andrew

Andrew

    Bleepin' Night Watchman

  • Topic Starter

  • Moderator
  • 8,070 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:07:26 PM

Posted 10 September 2007 - 05:42 PM

http://www.microsoft.com/windowsxp/sp2/default.mspx
http://www.microsoft.com/windows/default.mspx

Edited by Amazing Andrew, 10 September 2007 - 05:49 PM.

Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
x.png
Boredom Software Stop Highlighting Things

#10 eXPeri3nc3

eXPeri3nc3

  • Members
  • 2 posts
  • OFFLINE
  •  
  • Location:Malaysia
  • Local time:10:26 AM

Posted 14 September 2007 - 01:23 AM

Doesn't work with Google. It worked when I try google images tho :thumbsup:

Posted Image Msia Campus
Yeah, I'm 17+... Any problems with that?


#11 Leon Siria

Leon Siria

  • Members
  • 18 posts
  • OFFLINE
  •  
  • Local time:09:26 PM

Posted 14 September 2007 - 08:44 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?

#12 Andrew

Andrew

    Bleepin' Night Watchman

  • Topic Starter

  • Moderator
  • 8,070 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:07:26 PM

Posted 14 September 2007 - 09:21 AM

Cool :thumbsup: 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

What does the code mean,anyway?


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]
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.
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.
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!)
void(0);
this part kills any leftover data so that the page doesn't reload.

Edited by Amazing Andrew, 14 September 2007 - 09:31 AM.

Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
x.png
Boredom Software Stop Highlighting Things

#13 mlbrown

mlbrown

  • Members
  • 28 posts
  • OFFLINE
  •  
  • Location:Spartanburg, South Carolina
  • Local time:10:26 PM

Posted 18 October 2007 - 01:56 PM

cool find :thumbsup:

#14 delbertfanuncio

delbertfanuncio

  • Members
  • 2 posts
  • OFFLINE
  •  
  • Local time:10:26 AM

Posted 28 October 2007 - 12:42 PM

this is cool! i will definitely share this to with my friends :thumbsup:

#15 skyfuser

skyfuser

  • Members
  • 470 posts
  • OFFLINE
  •  
  • Location:California
  • Local time:07:26 PM

Posted 29 November 2007 - 01:54 AM

HAHAHAHAHA. Thanks for this! This is hilarious. My mom nearly caught be doing irrelevant stuff because I was stifling my laughter :cool: :trumpet: :inlove: :) :thumbsup: :flowers:

Edited by skyfuser, 29 November 2007 - 01:58 AM.

"If a man is offered a fact which goes against his instincts, he will scrutinize it closely, and unless the evidence is overwhelming, he will refuse to believe it. If, on the other hand, he is offered something which affords a reason for acting in accordance to his instincts, he will accept it even on the slightest evidence. The origin of myths is explained in this way." - Bertrand Russell




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users