Note that there are some explanatory texts on larger screens.

plurals
  1. PODropdown menu - Jquery problems on IE7
    primarykey
    data
    text
    <p><strong>EDIT:</strong> The code and examples have been changed, see the progress below.</p> <p>I'm working on a menu that uses Jquery to animate the display of the dropdown/flyout lists.</p> <p>The idea is, to have a menu that works well without javascript but when it is enabled we can had a bit of flair with Jquery, adding a alternative stylesheet and some animation.</p> <p>The problem is IE7 and my inability to solve the bug. I've put an <a href="http://uxte.com/test/menu/dropdown_example.html" rel="nofollow noreferrer">example online</a> where you can see the issue. In IE7 the flyout (second-level navigation) does not display when javascript is enabled.</p> <p>I have test it in IE8 (compatibility mode) and IE7 standalone I haven't had the opportunity to test in a pure IE7, so if any of you guys have it could you have a try and let me know what happens?</p> <p>Does anybody know what can be the problem?</p> <p><strong>Link to the files:</strong> uxte.com/test/menu/</p> <p><strong>Link to example:</strong> uxte.com/test/menu/dropdown_example.html</p> <p><strong>Jquery code below:</strong></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().animate({opacity: 1},{ duration: 500 }); } function hideElement( element ) { // animate opacity to nil element.stop().animate({opacity: 0},{ duration: 500, complete: function (){ element.css({ 'display' : 'none' }); } }); } $( "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>
    singulars
    1. This table or related slice is empty.
    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.
 

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