Dynamic HTML Example : Basic Animation

Moving an HTML entity to a specified location is the basis of animation. This example shows how an image can be moved using a DIV, with STYLE attributes, driven by javaScript.
Internet Explorer uses the top/left STYLE attributes, Netscape requires the use of pageX/pageY variables.

move1 move2 move3 move4