Author |
Magic Code |
axxxr Joined: Mar 21, 2003 Posts: > 500 From: Londinium PM, WWW
|
Copy and paste the code below in your address bar and hit ENTER!
javascript:r=0;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*.1+i*.25+1.6)*300+300;dis.top = Math.cos(r*.05+i*.24+.24)*200+200;}r++;}setInterval('a()',5);void(0);
_________________
BELIEVE|TERRORSTORM
[ This Message was edited by: axxxr on 2006-10-14 19:01 ] |
|
rockygali Joined: Nov 21, 2005 Posts: > 500 From: PM, WWW
|
hhmmm, will this invalidate my system and shut it down?
:: UPDATE ::
i hope nothin happens with my PC... ive open it via FireFOX? no effect
tho its wacky with InternetExplorer... kewl
:: DUMB UPDATE ::
oh its workin with firefox... its important to paste it a non-empty page.. sheeshh silly me
[ This Message was edited by: rockygali on 2006-10-14 05:40 ] |
Evil Eye Joined: Jun 23, 2004 Posts: > 500 From: Pune, Maharashtra, India PM |
its cool dude.
nice one!
|
spikeyjac Joined: May 30, 2006 Posts: > 500 From: west yorkshire! Mobile: w890i PM |
cool! |
Johnex Joined: Nov 26, 2002 Posts: > 500 From: Stockholm/Sweden PM, WWW
|
I cleaned up the code a bit made it a bit smaller.
javascript:r=0;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*.1+i*.25+1.6)*300+300;dis.top = Math.cos(r*.05+i*.24+.24)*200+200;}r++;}setInterval('a()',5);void(0);
[ This Message was edited by: Johnex on 2006-10-14 11:08 ] |
QuickShare Joined: May 06, 2006 Posts: > 500 From: MYR PM |
i got nothing from the copy paste .. what is it actually?
My Flickr Site.. Flickr.comMost Popular Newbie 2006 |
Burgaz Joined: Mar 25, 2004 Posts: > 500 From: Cwmbranistan, S. Wales PM, WWW
|
don't do it if, like me, you're suffering with a hangover....
I Fantasy Worlds and Disney Girls. Currently using: iPhone |
>500 Joined: Jan 24, 2006 Posts: > 500 PM |
Quote:
|
On 2006-10-14 12:39:09, QuickShare wrote:
i got nothing from the copy paste .. what is it actually?
|
|
make sure you have a website loaded, and not a blank page. Make sure there is no space like mentioned above by axxr......... |
goldenface Joined: Dec 17, 2003 Posts: > 500 From: Liverpool City Centre PM |
Didn't see a thing? What is it?
|
scottt Joined: Aug 22, 2005 Posts: > 500 From: North Yorkshire PM |
LOL thats pretty cool
I my 32GB iPhone 3GS |
strizlow800 Joined: Aug 23, 2006 Posts: > 500 From: Macedonia, Skopje PM |
Yeah. It is interesting. |
axxxr Joined: Mar 21, 2003 Posts: > 500 From: Londinium PM, WWW
|
Quote:
|
On 2006-10-14 12:08:11, Johnex wrote:
I cleaned up the code a bit made it a bit smaller.
|
|
your code isn't working mate,for some reason my original one only works!
[addsig] |
Cycovision Joined: Nov 30, 2003 Posts: > 500 From: England PM, WWW
|
Johnex's code works fine in my browser. You have to scroll back to the top of the page after you've cut and pasted the code and clicked 'go' to see it though
|
axxxr Joined: Mar 21, 2003 Posts: > 500 From: Londinium PM, WWW
|
Yeh cheers.....thats the part i missed....you need to schroll back to the top of the page!
Johnex your code is good mate!
[addsig] |
Johnex Joined: Nov 26, 2002 Posts: > 500 From: Stockholm/Sweden PM, WWW
|
what that code does is pick up all the images on the page and make them float in an orbit around a specific point in the middle of the page. works best in pages with thumbnails like google images, as you get a constant flow of the orbit, and as the images are all the same size, you get a cooler effect (and the google logo floating around )
if anyone wants a more through explanation of the code, i can post it.
[ This Message was edited by: Johnex on 2006-10-14 20:21 ] |
|