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. Link to comment https://forums.phpfreaks.com/topic/119402-drag-and-drop/ Share on other sites More sharing options...
DarkWater Posted August 12, 2008 Share Posted August 12, 2008 Check out script.aculo.us. Link to comment https://forums.phpfreaks.com/topic/119402-drag-and-drop/#findComment-615142 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> Link to comment https://forums.phpfreaks.com/topic/119402-drag-and-drop/#findComment-615590 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? Link to comment https://forums.phpfreaks.com/topic/119402-drag-and-drop/#findComment-615699 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.