title: Asp.NET OnMouseOver and OnMouseOut clientside
body: <p>I hope someone can give me a hint about what should I do in this case. I want to show a notification email. I have a timer that fires passing a time. If someone mouseover the linkbutton then will show all the emails and if out then dissapears. The fact is when I am trying to select one of the emails the content (which has the emails) dessapears because of the mouseout. What should I do to avoid this? Thanks in advance!!! by the way I get my emails at onmouseover and close on out.</p>
  
  <pre><code>    &lt;asp:Timer ID="TimerNew" runat="server" Interval="10000" OnTick="TimerNew_Tick" Enabled="false"&gt;&lt;/asp:Timer&gt;
      &lt;asp:Panel ID="PanelTools" runat="server" &gt;
              &lt;div runat="server" id="DropDownMenu"&gt;
                  &lt;asp:LinkButton ID="LinkButton" runat="server" onmouseover="OnClientMouseOver()" onmouseout="OnClientMouseOut()"&gt;
                  &lt;/asp:LinkButton&gt;
                  &lt;div id="divEmails" runat="server"&gt;
                      &lt;div class="dropdown-content"&gt;
                          &lt;ul id="emailList" runat="server"&gt;
                          &lt;/ul&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/asp:Panel&gt;
  
  Here is my javascript function.
  
  function OnClientMouseOver(obj, event)
  {
      var isOpen = '&lt;%= this.Open %&gt;';
      if (isOpen == false)
      {
          __doPostBack('OpenEmails');
      }
  }
  
  function OnClientMouseOut(obj, event)
  {
      var isOpen = '&lt;%= this.Open %&gt;';
      var e = event.toElement || event.relatedTarget;
      if (e.parentNode == this || e == this)
      {
          return;
      }
      __doPostBack('CloseEmails');
  }
  </code></pre>
  
  <p>this.Open is a variable (viewstate to dont lose it). I use telerik RadAjaxProxyManager, I do an ajax postback and execute my server methods.</p>