Welcome Guest ( Log In | Click here to Register a free account now! )
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.![]() ![]() |
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 |
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 -------------------- |
|
|
|
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
-------------------- 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 |
|
|
|
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.!
-------------------- By the time you have read this.....you have wasted 3 seconds of your life.
|
|
|
|
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 |
I almost fell out of my seat Me Too! That was pretty cool. drunkle -------------------- "Finished products are for decadent minds." --Asimov
"Cogito ergo sum." --René Descartes |
|
|
|
Sep 9 2007, 08:58 PM
Post
#5
|
|
|
Member ![]() ![]() Group: Members Posts: 22 Joined: 30-July 07 Member No.: 146,971 |
|
|
|
|
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!!
-------------------- ![]() You can't bash an eMachine until you've owned one, then you just use a baseball bat. |
|
|
|
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 -------------------- |
|
|
|
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 -------------------- |
|
|
|
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 -------------------- |
|
|
|
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
-------------------- Msia CampusYeah, I'm 17+... Any problems with that? |
|
|
|
Sep 14 2007, 08:44 AM
Post
#11
|
|
|
Member ![]() ![]() Group: Members Posts: 18 Joined: 7-July 07 Member No.: 142,071 |
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? |
|
|
|
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 |
Cool 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? 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 -------------------- |
|
|
|
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
|
|
|
|
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
|
|
|
|
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
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
|
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 18th March 2010 - 11:44 PM |