BleepingComputer.com: Messing With Google.com

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.

  • 4 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Messing With Google.com Nothing Special, Just Cool

#1 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,329
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

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.

This post has been 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.
Posted Image
Boredom Software Stop Highlighting Things

#2 User is offline   jhsmurray 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 383
  • Joined: 15-July 07
  • Location:6,378 km above the Earth's core

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 User is offline   gaming freakz 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 33
  • Joined: 08-May 07
  • Location:India

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 User is offline   drunkle 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 79
  • Joined: 23-August 07
  • Gender:Male
  • Location:the Big O!

Posted 06 September 2007 - 05:47 PM

View Postjhsmurray, on Sep 5 2007, 08:09 AM, said:

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 User is offline   Raker 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 40
  • Joined: 30-July 07

Posted 09 September 2007 - 08:58 PM

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

#6 User is offline   BlackSpyder 

  • Bleeping Big Rig
  • PipPipPipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 2,322
  • Joined: 23-January 06
  • Gender:Male
  • Location:Huddleston, VA USA (Home Sweet Home)

Posted 09 September 2007 - 09:52 PM

thats cool!! :thumbsup:
Posted Image




#7 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,329
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

  Posted 10 September 2007 - 05:56 AM

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

This post has been 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.
Posted Image
Boredom Software Stop Highlighting Things

#8 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,329
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

Posted 10 September 2007 - 06:00 AM

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

Add you're own!

This post has been 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.
Posted Image
Boredom Software Stop Highlighting Things

#9 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,329
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

Posted 10 September 2007 - 05:42 PM

This post has been 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.
Posted Image
Boredom Software Stop Highlighting Things

#10 User is offline   eXPeri3nc3 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 2
  • Joined: 01-June 06
  • Location:Malaysia

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 User is offline   Leon Siria 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 18
  • Joined: 07-July 07

Posted 14 September 2007 - 08:44 AM

View PostAmazing Andrew, on Sep 5 2007, 05:33 AM, said:

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 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,329
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

Posted 14 September 2007 - 09:21 AM

View PostLeon Siria, on Sep 14 2007, 06:44 AM, said:

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

View PostLeon Siria, on Sep 14 2007, 06:44 AM, said:

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.

This post has been 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.
Posted Image
Boredom Software Stop Highlighting Things

#13 User is offline   mlbrown 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 28
  • Joined: 16-October 07
  • Location:Spartanburg, South Carolina

Posted 18 October 2007 - 01:56 PM

cool find :thumbsup:

#14 User is offline   delbertfanuncio 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 2
  • Joined: 28-October 07

Posted 28 October 2007 - 12:42 PM

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

#15 User is offline   skyfuser 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 470
  • Joined: 23-November 07
  • Location:California

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:

This post has been 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

Share this topic:


  • 4 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users