Log in

View Full Version : Slightly amusing



hXc
17th December 2007, 21:48
Go to google images and do an image search on anything you want.
Once the image page loads with your search, copy the following text into the address bar at the top, replacing the URL.

This is the javascript.
javascript: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++}setInterv al('A()',5); void(0);

It's mildly amusing for a while.

0arbreaka
17th December 2007, 22:27
Ummmm, nothing happened.

Shadows
17th December 2007, 22:40
"Internet Explorer cannot download. Unspecified error."

Donor
17th December 2007, 22:43
What he said...

deanohit
17th December 2007, 22:43
Bwahahahahahaha, thats brilliant!



I don't get it?

rainman
17th December 2007, 22:45
The code snippet is incomplete. See this article (http://www.hemmy.net/2006/10/25/javascript-cool-effect-trick/) if you want the details... or google yer own!

Donor
17th December 2007, 23:01
Is this an IE only thing?

Cos I'll never know the time wasting joys otherwise...

'less ya count the numerous tries in Firefox...

Grub
17th December 2007, 23:21
The code snippet is incomplete. See this article (http://www.hemmy.net/2006/10/25/javascript-cool-effect-trick/) if you want the details... or google yer own!

Nup, that didn't work for me either (IE7)

xwhatsit
18th December 2007, 01:09
He missed about half of it. Here's the lot:


javascript: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++}setInterv al('A()',5); void(0);

It won't just work on Google Images; it'll work on most pages as it just cycles through the images in the page's DOM.

Mikkel
18th December 2007, 08:00
That becomes old pretty quickly though...

Reminds me a bit of an old C64 game!

hXc
18th December 2007, 09:39
Well it worked for me. In firefox.
No problems.

HTFU
18th December 2007, 09:44
That becomes old pretty quickly though...

Reminds me a bit of an old C64 game!

Yeah, use to programme basic into the C64 and make a ball bounce around the screen. Was pretty cool for a 7 year old in 1984.

0arbreaka
18th December 2007, 11:56
Thats pretty cool, worked for me now.