The things I do to amuse myself :)

KD

Gone fishing
Try this out
Open a web page with plenty of images on it. Perhaps put something into the google images page?

When the page and all images is fully loaded, cut and paste this java script into the url bar and hit enter. Watch the result.

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.getElementsByTagName("img"); 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)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',50); void(0);
 
Try this out
Open a web page with plenty of images on it. Perhaps put something into the google images page?

When the page and all images is fully loaded, cut and paste this java script into the url bar and hit enter. Watch the result.

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.getElementsByTagName("img"); 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)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',50); void(0);


gonna try this one.....:D
 
I just got Error on page :confused:
 
Me too :(
 
Ack... Sorry. Looks like a spare 'space' inserted itself amongst the code.

Try this (not that it's that exciting:D)

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.getElementsByTagName("img"); 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)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',50); void(0);

Edited: That's interesting. It put the space in again when I posted this message. Okay. take the space out of setInterval near the end of the code.
 
wheeeeeee!!!! funky!! how do you know these things??!!

I spent hours on it. Maybe even days....probably weeks! Bloody, sweat and tears. Comfort ate during times of frustration with the code. Starved myself when it went well. Burned the candles at both ends, eating the wick at the end when I had missed dinner working on it.

Okay....I knicked it from someone else, but don't tell a soul :D
 
haha

I have millions of Morrisseys all floating about!

Pretty Swish

Ivy
 
Boo hoo still not working for me:( Not sure what I'm doing wrong, but still getting error on page. Hate missing out on something!
 
Did you take the space out? When I posted the code, for some reason it puts a space inbetween setInterval (se tInterval)

You need to delete the space, then it should work.
 
Yep, took the space, still nothing! Just a clot - that's me;)
 
Aww :( Wonder why it's not working. It's nothing terribly exciting.

It picks up all the pictures on the site and makes them spin around in a circle:cool:
 
Back
Top