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);
 
Get Rid of this ad and join in on the conversation for free today! Tap here!

Isis

Ancient Egypt Nut!
C: 18st3lb G: 11st0lb BMI: 39.9
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
 

MadamDotty

Back again!
I just got Error on page :confused:
 

Tinley

Full Member
S: 12st13lb C: 12st1lb G: 9st6lb BMI: 30.9 Loss: 0st12lb(6.63%)
Me too :(
 

KD

Gone fishing
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.
 

KD

Gone fishing
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
 

Ivy

Silver Member
haha

I have millions of Morrisseys all floating about!

Pretty Swish

Ivy
 

MadamDotty

Back again!
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!
 

KD

Gone fishing
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.
 

MadamDotty

Back again!
Yep, took the space, still nothing! Just a clot - that's me;)
 

KD

Gone fishing
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:
 




Top