<img src="
http://www.lshdic.cn/bbs/image/fyw.jpg" οnmοusedοwn=one() οnmοusemοve=two() οnmοuseup=end()><p>
<img src=" http://www.lshdic.cn/bbs/image/fyw.jpg" οnmοusedοwn=one() οnmοusemοve=two() οnmοuseup=end()><p>
dddddd
<script>
//作者:风云舞, http://lshdic.cn
//用简单的函数,完成鼠标拖动多个图片
var oldx=0,oldy=0,oldobj=null
function one(){
oldobj=event.srcElement
oldx=event.x-oldobj.offsetLeft;oldy=event.y-oldobj.offsetTop;
oldobj.style.position="absolute"
oldobj.setCapture()
}
function two(){
if(oldobj==null)return false
oldobj.style.left=event.x-oldx
oldobj.style.top=event.y-oldy
}
function end(){
oldobj=null;document.releaseCapture();
}
</script>
<img src=" http://www.lshdic.cn/bbs/image/fyw.jpg" οnmοusedοwn=one() οnmοusemοve=two() οnmοuseup=end()><p>
dddddd
<script>
//作者:风云舞, http://lshdic.cn
//用简单的函数,完成鼠标拖动多个图片
var oldx=0,oldy=0,oldobj=null
function one(){
oldobj=event.srcElement
oldx=event.x-oldobj.offsetLeft;oldy=event.y-oldobj.offsetTop;
oldobj.style.position="absolute"
oldobj.setCapture()
}
function two(){
if(oldobj==null)return false
oldobj.style.left=event.x-oldx
oldobj.style.top=event.y-oldy
}
function end(){
oldobj=null;document.releaseCapture();
}
</script>