Div显示在鼠标的位置

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

 <div   id=m   style="position:absolute;top:0;left:0;visibility:hidden;padding:3px;border:1px solid #528AC6;background-

  color:#ffdfd0;" >

  <center><b>老婆,我爱你!</b><center><br>

  <img src="040.jpg" width="180" height="270">

  </div>

  <table   border=1>

  <tr>

//http://www.baoluowanxiang.com

  <td>aa</td><td>aa</td><td>aa</td><td>aa</td>

  </tr>

  <tr   onmouseover="m.style.visibility='visible';m.style.top=event.clientY;m.style.left=event.clientX;"

  onmousemove="m.style.top=event.clientY;m.style.left=event.clientX;"   onmouseout="m.style.visibility='hidden'">

  <td   colspan=4><img src="040.jpg" width="60" height="90"></td>

  </tr>

  </table>



本文转自 ☆★ 包罗万象 ★☆ - www.baoluowanxiang.com 转载请注明出处,侵权必究!
原文链接:http://www.baoluowanxiang.com/a/website/div_css/2010/1201/2363.html