JS高级拖动技术--- setCapture ,releaseCapture
摘要:
<script type="text/javascript"><!--window.onload=function(){ objDiv = document.getElementById('drag'); drag(objDiv);};function drag(dv){ dv.onmousedown=function(e){var d=document;e = e ||window.event; var x= e.layerX || e.offsetX;var y= e.layerY || e.offsetY;//设置捕获范围if(dv. 阅读全文
posted @ 2011-07-29 15:23 eoiioe 阅读(2392) 评论(2) 推荐(0) 编辑