<script>var xx=0,yy=0;function a(v){xx=event.x-v.offsetLeft; //取得对象减左边框的距离yy=event.y-v.offsetTop; //取得对象减顶边框的距离}function b(v){v.style.left=event.x-xx; //取得对象离左边框的距离v.style.top=event.y-yy; //取得对象离顶边框的距离}</script><img > 相关文章: