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.
Posted 05 September 2007 - 05:33 AM
Edited by Amazing Andrew, 05 September 2007 - 05:38 AM.

Posted 05 September 2007 - 08:09 AM
Posted 06 September 2007 - 12:17 PM
Posted 06 September 2007 - 05:47 PM
I almost fell out of my seat
Posted 09 September 2007 - 08:58 PM
Posted 10 September 2007 - 05:56 AM
Edited by Amazing Andrew, 10 September 2007 - 05:57 AM.

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

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

Posted 14 September 2007 - 01:23 AM
Msia Campus
Yeah, I'm 17+... Any problems with that?
Posted 14 September 2007 - 08:44 AM
Cool :thumbup2:It worked only on the Google images page not on the main web page. What does the code mean,anyway?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.
Posted 14 September 2007 - 09:21 AM
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 IE7Cool
It worked only on the Google images page not on the main web page.
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.

Posted 28 October 2007 - 12:42 PM
Posted 29 November 2007 - 01:54 AM
Edited by skyfuser, 29 November 2007 - 01:58 AM.
0 members, 0 guests, 0 anonymous users