<div class="codetitle"> <span><a style="CURSOR: pointer" data="85306" class="copybut" id="copybut85306" onclick="doCopy('code85306')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code85306"> <br> <br> <br> <br><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <br><title>无标题文档</title> <script type="text/javascript" src="jquery-1.4.4.js"></script> <br><script type="text/javascript"> <BR>$(function(){ <BR>$("html").mousemove(function(e){ <BR>$("#a").css("left",e.pageX).css("top",e.pageY); <BR>}); <BR>}); <BR></script> <br><style type="text/css"> <BR>.a { <BR>width:200px; <BR>height:100px; <BR>position:absolute; <BR>background-color:rgb(0,0,0); <BR>} <BR></style> <br> <br> <br><br><img src="%E5%9B%BE%E7%89%87" id="a" name="a" class="a" alt="jquery实现鼠标拖动图片效果示例代码_jquery" > <br><br>只做了一个简单的实例 <br> <br><br> <br> </div>