求助:如何实现当鼠标经过图片链接时,就显示出提示有换行的,鼠标移开后就恢复原样.
求助:如何实现当鼠标经过图片链接时,就显示出提示有换行的,鼠标移开后就恢复原样.
<script language="javascript"> function myTip(){ var myd=document.getElementById("mydiv"); myd.style.left=event.clientX+15; myd.style.top=event.clientY+15; myd.style.visibility="visible"; } function myhid(){ var myd=document.getElementById("mydiv"); myd.style.visibility="hidden"; } </script> <body> <img name="image" src="http://pagead2. onMousemove="myTip()" onmouseout="myhid()"> <div id="mydiv" style="visibility:hidden;position:absolute;width:100;height:80;border:1 solid;z-index:100"> 我换<br> 我换<br> 我换换换!<br> </div> </body>