<div class="codetitle"> <span><a style="CURSOR: pointer" data="35956" class="copybut" id="copybut35956" onclick="doCopy('code35956')"><u>複製程式碼</u></a></span>程式碼如下:</div> <div class="codebody" id="code35956"> <br><script language="javascript" src="jquery-1.4.%202%20.min.js">腳本> <BR><腳本> <BR>function show(obj,id) { <BR>var objDiv = $("#" id ""); <BR>$(objDiv) .css("顯示","區塊"); <BR>$(objDiv).css("left", event.clientX); <BR>$(objDiv).css("top", event.clientY 10) ; <BR>} <BR>function hide(obj,id) { <BR>var objDiv = $("#" id ""); <BR>$(objDiv).css("顯示", "無") ; <BR>} <BR></腳本> <br><br><! --http://www.ablanxue.com/prone_3421_1.html--> <br><br><div id="mydiv1" style="position:absolute;display:none;border:1px Solid silver;background: silver;"> <BR>提示1效果<BR></script> </div> <br><div id="mydiv2" style="position:absolute;display:none;border:1px Solid silver;background:silver;"> <br>提示2效果<br> </div> <br><br><a id="t1" onmouseover="javascript:show(this,'mydiv1');" onmouseout="hide(this,'mydiv1 ')">滑鼠放上去1</a> <br><br><br><br><br><br> <br><a id="t2" onmouseover="javascript:show(this,' mydiv2');" onmouseout="hide(this,'mydiv2')">滑鼠放上去2</a> <br>