M
maya
I need a drag-n-drop script.. I have found one here..
http://javascript.internet.com/page-details/drag-n-drop.html
each div containing an image has an id, and each image has a name, as in
<div id="h" style="position:absolute;left:100;top:350;">
<img src=http://javascript.internet.com/img/cards/hearts.gif name="h">
</div>
but I don't see where he references these id's and names in the JS code..
functions are declared with param 'e', but I don't see this param being
passed to the functions when they're called (called thus:
document.onmousedown = MD;.. etc..)
I need to apply this to a div (which contains a table), but if I put the
same id and name to my <div> as he has here for one of the images it
doesn't work..
what am I missing please.. thank you..
http://javascript.internet.com/page-details/drag-n-drop.html
each div containing an image has an id, and each image has a name, as in
<div id="h" style="position:absolute;left:100;top:350;">
<img src=http://javascript.internet.com/img/cards/hearts.gif name="h">
</div>
but I don't see where he references these id's and names in the JS code..
functions are declared with param 'e', but I don't see this param being
passed to the functions when they're called (called thus:
document.onmousedown = MD;.. etc..)
I need to apply this to a div (which contains a table), but if I put the
same id and name to my <div> as he has here for one of the images it
doesn't work..
what am I missing please.. thank you..