[thelist] Moving a <div> with javascript
Robert Vreeland
vreeland at studioframework.com
Mon Mar 10 14:27:02 CST 2003
----- Original Message -----
From: "Ryan Rushton" <me at ryanrushton.com>
To: <thelist at lists.evolt.org>
Sent: Monday, March 10, 2003 3:17 PM
Subject: [thelist] Moving a <div> with javascript
> Hi all,
>
> I have some simple javascript that moves a <div> left or right on the
> screen when a user mouses over one of two text links. This seems to be
> fine in IE 6.x, but not in the latest versions of Netscape / Mozilla. Is
> there a way to make this work with Mozilla?
try this:
function right()
{
i = parseInt(document.getElementById("watch01").style.left);i++;
document.getElementById("watch01").style.left = (i +
"px");timer=setTimeout("right()",10);
}and the same idea for function left()
More information about the thelist
mailing list