Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ok, after reading a little more about the <code>animate</code>, <code>fadeIn</code>/<code>fadeOut</code> and <code>fadeTo</code> I understood that I don't need to use filter: alpha for IE as Jquery already supports it.</p> <p>Knowing that, I made a test using <code>fadeIn</code> and <code>fadeOut</code> (<a href="http://uxte.com/test/menu/dropdown_example.html" rel="nofollow noreferrer">now online</a>) and it works, but there is a problem, if you hover in and out several times it continues repeating the animation. This doesn't happen with <code>fadeTo</code> or <code>animate</code> since I can add a <code>stop()</code> before but it doesn't work on IE7.</p> <p>This is my present code and below the example with fadeTo that isn't working in IE7.</p> <pre><code>$( document ).ready ( function() { $('head link#noscript').replaceWith('&lt;link id="script" rel="stylesheet" href="script.css" type="text/css" /&gt;'); $( "div#menu ul li" ).hover ( function() { var ul = $( this ).find( "ul:first" ); ul.fadeIn('normal'); }, function() { var ul = $( this ).find( "ul:first" ); ul.fadeOut('normal'); } ); } ); </code></pre> <p>Not working code (on IE7):</p> <pre><code>$( document ).ready ( function() { $('head link#noscript').replaceWith('&lt;link id="script" rel="stylesheet" href="script.css" type="text/css" /&gt;'); /*Menu effects*/ function showElement( element ) { element.css({ 'display' : 'block', 'opacity' : '0' }); // animate opacity to full element.stop().fadeTo(500, 1); } function hideElement( element ) { // animate opacity to nil function onComplete(){ element.css({ 'display' : 'none' }); } element.stop().fadeTo(500, 0, onComplete); } $( "div#menu ul li" ).hover ( function() { var ul = $( this ).find( "ul:first" ); showElement( ul ); }, function() { var ul = $( this ).find( "ul:first" ); hideElement( ul ); } ); } ); </code></pre> <p>Hope someone can help.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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