Submit FAQs Awards Usage Terms Contact

<html>

<head>
<script language="JavaScript1.2">

/*Generic Drag layer
By Jim Silver @ jimsilver47@yahoo.com 1998
You may use this script on your web page as long
as this credit remains intact
Exlusive permission granted to Dynamic Drive (http://dynamicdrive.com) to include this script
in their DHTML archive.
Visit my homepage at http://members.tripod.com/~dynamicboy!
*/

var nsx
var nsy
var nstemp

function drag_drop(name){
temp=eval(name)
temp.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
temp.onmousedown=go
temp.onmousemove=drag
temp.onmouseup=stop
}

function go(e){
temp.captureEvents(Event.MOUSEMOVE)
nsx=e.x
nsy=e.y
}
function drag(e){
temp.moveBy(e.x-nsx,e.y-nsy)
return false
}

function stop(){
temp.releaseEvents(Event.MOUSEMOVE)
}
</script>
</head>

<body>
<layer onMouseover="drag_drop(this)">
"
</layer>
</body>
</html>