The Little Guy Posted August 12, 2008 Share Posted August 12, 2008 Anyone know of a good drag and drop tutorial? The pre-made drag and drop scripts don't meet my needs. Quote Link to comment Share on other sites More sharing options...
DarkWater Posted August 12, 2008 Share Posted August 12, 2008 Check out script.aculo.us. Quote Link to comment Share on other sites More sharing options...
lemmin Posted August 13, 2008 Share Posted August 13, 2008 Drag and drop what? <html> <head> <script language="JScript"> function startDrag(e) { var offsetX = event.clientX-parseInt(e.style.left); var offsetY = event.clientY-parseInt(e.style.top); document.onmousemove = function() { e.style.left = event.clientX-offsetX; e.style.top = event.clientY-offsetY; } document.onmouseup=function() { document.onmousemove=null; } } </script> </head> <bodY> <div STYLE="position:absolute;width:100px;height:100px;background-color:#0000FF;left:0px;top:0px" onmousedown="startDrag(this)"></div> </body> </html> Quote Link to comment Share on other sites More sharing options...
phorcon3 Posted August 13, 2008 Share Posted August 13, 2008 http://tool-man.org/examples/ is that what u were lookin for? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.