How can move an image by coordinates? (html)?

Jarid

New member
I need 2 form fields that control the x and y coordinates of an image. For instance if you type 3 in the first text entry box and 3 in the other and click submit the image should move to (3,3)

Here is what i have so far:

<div id="image1" style="position:absolute; overflow:hidden; left:171px; top:79px; width:10px; height:10px; z-index:0"><img src=image1.png" alt="" title="" border=0 width=10 height=10></div>

I am not sure how to replace 171px and 79px with a forum field controlled variable.
What is the simplest way to do this?
 
Back
Top