[b][red]This message was edited by tburcham at 2002-9-5 17:57:55[/red][/b][hr] : ok say there is shapes at the top of the screen how do you make it so the user can freely move them???
Below is an entire web page that should work. I didn't test it. Just put an image in its folder named "img.gif", or change the name of the pic image in the IMG tag. You'll need more code to keep track of which image to move if you add more.
Comments
: ok say there is shapes at the top of the screen how do you make it so the user can freely move them???
Below is an entire web page that should work. I didn't
test it. Just put an image in its folder named "img.gif",
or change the name of the pic image in the IMG tag.
You'll need more code to keep track of which image to
move if you add more.
[code]
Image Dragger
function MoveObj(e) {
if(e.button) {
spn.style.left = e.x
spn.style.top = e.y
}
}
[/code]