Note that there are some explanatory texts on larger screens.

plurals
  1. POjquery hover/mouseover bug
    text
    copied!<p>Iam trying to display a tooltip when mouseovering and hide it when mouseout.</p> <p>I used :</p> <pre><code>var keepTab = false; var sC = $('#SwitchContent') $('#navbar img').mouseenter(function(){ sC.show("slow"); LoadPage($(this).attr('alt')); keepTab = false; sC.removeClass("selected"); }).mouseout(function(){ if (!keepTab){ sC.fadeOut("slow"); } }); $('#navbar img').click(function(){ keepTab = true; sC.addClass("selected"); }); </code></pre> <p>and the html </p> <pre><code>&lt;div id="navbar" style="margin-top: &lt;?= $navBar_margintop ?&gt;px"&gt; &lt;img src="images/tab9.gif" alt="tab9" style="margin-right: &lt;?= $margintab9 ?&gt;px" height="&lt;?= $navbarH[8] ?&gt;" width="&lt;?= $navbarW[8] ?&gt;"/&gt; &lt;div class="clear"&gt;&lt;/div&gt; &lt;img src="images/tab1.gif" alt="tab1" style="margin-right: &lt;?= $margintab1 ?&gt;px" height="&lt;?= $navbarH[0] ?&gt;" width="&lt;?= $navbarW[0] ?&gt;"/&gt; &lt;div class="clear"&gt;&lt;/div&gt; &lt;img src="images/tab2.gif" alt="tab2" style="margin-right: &lt;?= $margintab2 ?&gt;px" height="&lt;?= $navbarH[1] ?&gt;" width="&lt;?= $navbarW[1] ?&gt;"/&gt; &lt;div class="clear"&gt;&lt;/div&gt; .... &lt;img src="images/tab8.gif" alt="tab8" style="margin-right: &lt;?= $margintab8 ?&gt;px" height="&lt;?= $navbarH[7] ?&gt;" width="&lt;?= $navbarW[7] ?&gt;"/&gt; </code></pre> <p></p> <p>I also tried hover. but they both had a bug where the show and hide actions gets stuck in a loop (only part of the time). This happens in all of the browsers. </p> <p>A live example can be viewed <a href="http://www.s-maof.com/LandingPages/PRO/" rel="nofollow">here</a></p> <p>thanks.</p> <p>edit:</p> <p>also tried mouseenter..</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload