如何使用jquery或javascript在鼠標上顯示和隱藏文本?
function Hover() {
//display something inside div id=dynamicDivFirstModule
}
function HoverClear() {
//clear//
}
<div ID="dynamicDivFirstModule" >
<%-- Dynamic Div--%>
<div id="dynamicDiv" style="display:none; border:solid;" >
<table>
<tr>
<td class="auto-style1" rowspan="2">
<asp:TextBox ID="textbox" TextMode="MultiLine" runat="server" ReadOnly="true" style="overflow:auto;" Height="102px" Width="235px"></asp:TextBox>
</td>
<td id="hoverHere">
<p id="hover" class="masterTooltip" onmouseover="Hover();" onmouseOut="HoverClear()">?</p>
</td>
</tr>
<tr>
<td>
<asp:Button ID="Delete" runat="server" Text="Delete" CssClass="removeDiv" />
</td>
</tr>
</table>
</div>
<%-- Dynamic Div--%>
</div>
什麼元素應該有懸停效果?我的意思是,哪個元素懸停顯示div內容? – messerbill
@Syed做任何答案幫助? – tariq