Computer Help and Spyware Removal Computer Help and Spyware Removal Computer Help and Spyware Removal Computer Help Forums Windows Startup Programs Database Virus, Spyware, and Malware Removal Guides Computer Tutorials Uninstall Database File Database Computer Glossary Computer Resources
 

Welcome Guest ( Log In | Click here to Register a free account now! )



Register a free account to unlock additional features at BleepingComputer.com
Welcome to Bleeping Computer, 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 V   1 2 3 > »   
Reply to this topicStart new topic
> Messing With Google.com, Nothing Special, Just Cool
Andrew
post Sep 5 2007, 05:33 AM
Post #1


Bleepin' Night Watchman
******

Group: Moderator
Posts: 4,872
Joined: 5-December 05
From: The City of Saint Francis, by the western sea
Member No.: 43,307



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: Sep 5 2007, 05:38 AM


--------------------
Go to the top of the page
 
+Quote Post
jhsmurray
post Sep 5 2007, 08:09 AM
Post #2


Senior Member
****

Group: Members
Posts: 376
Joined: 15-July 07
From: 6,378 km above the Earth's core
Member No.: 143,724



I almost fell out of my seat hysterical.gif


--------------------

Toshiba Satellite A135
OS: Vista Home Premium SP1 // Windows7 Ultimate
Processor: T2250 @ 1.73 GHz (2 CPUs), ~1.7 GHz
RAM: 3 GB
Display: Mobile Intel® 945GM/GU Express Chipset Family
Go to the top of the page
 
+Quote Post
gaming freakz
post Sep 6 2007, 12:17 PM
Post #3


Member
**

Group: Members
Posts: 33
Joined: 8-May 07
From: India
Member No.: 129,609



Great one there.! smile.gif


--------------------
By the time you have read this.....you have wasted 3 seconds of your life.
Go to the top of the page
 
+Quote Post
drunkle
post Sep 6 2007, 05:47 PM
Post #4


Member
**

Group: Members
Posts: 77
Joined: 23-August 07
From: the Big O!
Member No.: 152,131



QUOTE(jhsmurray @ Sep 5 2007, 08:09 AM) *
I almost fell out of my seat hysterical.gif


Me Too! That was pretty cool.

drunkle


--------------------
"Finished products are for decadent minds." --Asimov
"Cogito ergo sum." --René Descartes
Go to the top of the page
 
+Quote Post
Raker
post Sep 9 2007, 08:58 PM
Post #5


Member
**

Group: Members
Posts: 22
Joined: 30-July 07
Member No.: 146,971



thumbup.gif Cool! Can't stare at it too long or I'll get motion sickness!
Go to the top of the page
 
+Quote Post
BlackSpyder
post Sep 9 2007, 09:52 PM
Post #6


Bleeping Big Rig
******

Group: BC Advisor
Posts: 2,013
Joined: 23-January 06
From: Huddleston, VA USA (Home Sweet Home)
Member No.: 51,954



thats cool!! thumbup.gif


--------------------

You can't bash an eMachine until you've owned one, then you just use a baseball bat.
Go to the top of the page
 
+Quote Post
Andrew
post Sep 10 2007, 05:56 AM
Post #7


Bleepin' Night Watchman
******

Group: Moderator
Posts: 4,872
Joined: 5-December 05
From: The City of Saint Francis, by the western sea
Member No.: 43,307



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

This post has been edited by Amazing Andrew: Sep 10 2007, 05:57 AM


--------------------
Go to the top of the page
 
+Quote Post
Andrew
post Sep 10 2007, 06:00 AM
Post #8


Bleepin' Night Watchman
******

Group: Moderator
Posts: 4,872
Joined: 5-December 05
From: The City of Saint Francis, by the western sea
Member No.: 43,307



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

Add you're own!

This post has been edited by Amazing Andrew: Sep 10 2007, 06:16 AM


--------------------
Go to the top of the page
 
+Quote Post
Andrew
post Sep 10 2007, 05:42 PM
Post #9


Bleepin' Night Watchman
******

Group: Moderator
Posts: 4,872
Joined: 5-December 05
From: The City of Saint Francis, by the western sea
Member No.: 43,307



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

This post has been edited by Amazing Andrew: Sep 10 2007, 05:49 PM


--------------------
Go to the top of the page
 
+Quote Post
eXPeri3nc3
post Sep 14 2007, 01:23 AM
Post #10


New Member
*

Group: Members
Posts: 2
Joined: 1-June 06
From: Malaysia
Member No.: 70,421



Doesn't work with Google. It worked when I try google images tho huh.gif


--------------------
Msia Campus
Yeah, I'm 17+... Any problems with that?
Go to the top of the page
 
+Quote Post
Leon Siria
post Sep 14 2007, 08:44 AM
Post #11


Member
**

Group: Members
Posts: 18
Joined: 7-July 07
Member No.: 142,071



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?
Go to the top of the page
 
+Quote Post
Andrew
post Sep 14 2007, 09:21 AM
Post #12


Bleepin' Night Watchman
******

Group: Moderator
Posts: 4,872
Joined: 5-December 05
From: The City of Saint Francis, by the western sea
Member No.: 43,307



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.

This post has been edited by Amazing Andrew: Sep 14 2007, 09:31 AM


--------------------
Go to the top of the page
 
+Quote Post
mlbrown
post Oct 18 2007, 01:56 PM
Post #13


Member
**

Group: Members
Posts: 28
Joined: 16-October 07
From: Spartanburg, South Carolina
Member No.: 163,486



cool find thumbup.gif
Go to the top of the page
 
+Quote Post
delbertfanuncio
post Oct 28 2007, 12:42 PM
Post #14


New Member
*

Group: Members
Posts: 2
Joined: 28-October 07
Member No.: 165,910



this is cool! i will definitely share this to with my friends smile.gif
Go to the top of the page
 
+Quote Post
skyfuser
post Nov 29 2007, 01:54 AM
Post #15


Senior Member
****

Group: Members
Posts: 470
Joined: 23-November 07
From: California
Member No.: 171,969



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

This post has been edited by skyfuser: Nov 29 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
Go to the top of the page
 
+Quote Post

4 Pages V   1 2 3 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 18th March 2010 - 11:44 PM


Advertise   |   About Us   |   Terms of Use   |   Privacy Policy   |   Contact Us   |   Site Map   |   Chat   |   Tutorials   |   Uninstall List
Discussion Forums   |   The Computer Glossary   |   Resources   |   RSS Feeds   |   Startups   |   The File Database   |   Virus Removal Guides

© 2003-2010 All Rights Reserved Bleeping Computer LLC.