<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>//W3C/1. Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <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%9C%96%E7%89%87" id="a" name="a" class="a" alt="jquery實作滑鼠拖曳圖片效果範例程式碼_jquery" > <br><br>只做了一個簡單的實例<br> <br><br> <br> </div>