Positioning Elements with Dynamic HTML


Click the mouse on the picture to move it around; click again to drop it.
The picture is moved by setting its style.posLeft and style.posTop properties.


Mouse X Mouse Y Moving basex basey
style.posLeft style.posTop     deltax deltay

Jim O'Donnell, jim@odonnell.org