I'll let the author explain...
This is the revamped, bug-free, shorter and better "Image Mover 2"
It is easier to set it up.
Enter coordinates in pairs ( first x coord., then y coord. ) in the way shown below:
var coordinates="0,0,64,64,0,128,128,0";
IMPORTANT you must use multiplication of 32 as coordinates (
0,32,64,96,128, etc.)
If you want to have more precision ( 20, 16 etc. ) email me and I'll tell you what to do.
First pair of the coordinates are the "start" coordinates and "end" at the same time, because the image will loop.
setTimeout("reposition(xst,yst)",25) changes the speed ( here delay is 25 ms.)
For complete explanation go to my site:
http://home.sprynet.com/sprynet/rgasior
Please note: This script is being offered in simple text format. When you click to Grab the Script, the text should display. Internet Explorer and AOL users may get a blank page or the script may run and produce the effect. If this happens, choose SAVE AS from the FILE menu and save the blank or compiled page.