Hey, if you want it to just fly horizantaly- put the imgae between "<marquee>" and "</marquee>". I think is should work also inside tables + you can adjust the marquee width and behavoir.
use what kaht wrote +
to automate it do:
var x;
function movediv()
{
//basicly here you change the div corodinations
//as if the starting place was x from left and y from top //now set x to x=x+1 and y to y=y+1 or in any other way
}
function repeat() // this repeats the movediv()
//to stop this use: 'event'="clearTimeout(x)";
{
x=setTimeout("movediv()","2000(//u changethe speed)"
}
If you change the x and y coordinates it'll move along a diagonal instead of horizontally. Also, there's more to the syntax than x = x + 1. I can't remember the syntax off the top of my head and I'm kinda busy to research it at the moment. Any google search should give you what you're looking for cause moving divs is pretty common.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.