jQuery hover function results in flickering
<p>I am trying to show a div when hovering over the first row of a table. This results in flickering. How can I fix it?</p>

<pre><code>    &lt;%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="hovermouse._Default" %&gt;

&lt;asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"&gt;
&lt;/asp:Content&gt;
&lt;asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"&gt;

    &lt;script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"&gt;&lt;/script&gt;

    &lt;script type="text/javascript"&gt;


        $(document).ready(


function () {

    $("table tr:first").hover(function () {
        $("#mydiv").show()
    },
            function () {
                $("#mydiv").hide();
            }
            );
}
        );
    &lt;/script&gt;

    &lt;div id="mydiv"&gt;
        you can see me&lt;/div&gt;

    &lt;table border="true"&gt;
        &lt;tr&gt;
            &lt;td&gt;
                hi
            &lt;/td&gt;
            &lt;td&gt;
                hi
            &lt;/td&gt;
            &lt;td&gt;
                hi
            &lt;/td&gt;
            &lt;td&gt;
                hi
            &lt;/td&gt;
            &lt;td&gt;
                hi
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                hi
            &lt;/td&gt;
            &lt;td&gt;
                hi
            &lt;/td&gt;
            &lt;td&gt;
                hi
            &lt;/td&gt;
            &lt;td&gt;
                hi
            &lt;/td&gt;
            &lt;td&gt;
                hi
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                hi
            &lt;/td&gt;
            &lt;td&gt;
                hi
            &lt;/td&gt;
            &lt;td&gt;
                hi
            &lt;/td&gt;
            &lt;td&gt;
                hi
            &lt;/td&gt;
            &lt;td&gt;
                hi
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/table&gt;
&lt;/asp:Content&gt;
</code></pre>
