Hello,
How to show a table on mouse over an hyperlink in asp.net?
Initially while page loads the table must be hidden, and when on mouse over it must be seen?

Recommended Answers

All 2 Replies

ASP.NET table or HTML table?

this is for HTML table

<asp:HyperLink ID="HyperLink1" runat="server" onmouseover="document.getElementById('tbl').visible=true" >HyperLink</asp:HyperLink>

You need to give ID for your table

ASP.NET table or HTML table?

this is for HTML table

<asp:HyperLink ID="HyperLink1" runat="server" onmouseover="document.getElementById('tbl').visible=true" >HyperLink</asp:HyperLink>

You need to give ID for your table


Ya this works, But this is my coding

<script type="text/javascript" language="javascript" >
   function ShowHideMenu()
   {
    document.getElementById("mnuAttendance").style.visibility = "visible"
   }
   
   </script>
<tr>
                                                <td class="style18">
                                                    <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/attendance.gif" />
                                                </td>
                                                <td class="style19">
                                                    <asp:HyperLink ID="HyperLink3" runat="server" >Attendance</asp:HyperLink>
                                                    <div id="mnuAttendance" style="visibility:hidden" >
                                                    <asp:HyperLink ID="HyperLink24" runat="server">HyperLink</asp:HyperLink>
                                                    </div>
                                                </td>
                                            </tr>

I used this coding, but i am getting the extra space below Attendance even after i hidden it. I want only on mouse over it must be visible.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.