[thelist] Moving a <div> with javascript

Ryan Rushton me at ryanrushton.com
Tue Mar 11 09:02:39 CST 2003

----- Original Message -----
From: "Robert Vreeland" <vreeland at studioframework.com>
To: <thelist at lists.evolt.org>
Subject: Re: [thelist] Moving a <div> with javascript
Date: Mon, 10 Mar 2003 15:34:42 -0500
Reply-To: thelist at lists.evolt.org

>try this:
>function right()
>i = parseInt(document.getElementById("watch01").style.left);i++;
>document.getElementById("watch01").style.left = (i +
>}and the same idea for function left()

Thanks Robert.  The key was appending "px" to specify which units to use.

More information about the thelist mailing list