Note that there are some explanatory texts on larger screens.

plurals
  1. POJQuery .hover() not working in IE7 or compatability mode for each version of IE
    primarykey
    data
    text
    <p>I'm building a menu that allows the user to hover over the given topic, and a menu drops down to reveal an array of different options.</p> <p>Everything works fine in Safari, Chrome, Firefox, Opera, IE9 - IE8 (non-compatability view), but IE7 is doing something weird.</p> <p>In HTML, my menu is built like this:</p> <pre><code>&lt;div id="menu_container"&gt; &lt;div id="menu_collapse"&gt; &lt;div id="menu"&gt; &lt;div id="home_button"&gt; &lt;/div&gt; &lt;ul&gt; &lt;li&gt;Television&lt;/li&gt; &lt;li&gt;Radio&lt;/li&gt; &lt;li&gt;Get Involved&lt;/li&gt; &lt;li&gt;Non-Profit Services&lt;/li&gt; &lt;li&gt;Education&lt;/li&gt; &lt;li&gt;Donate&lt;/li&gt; &lt;li&gt;Extra&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div id="search_menu"&gt; &lt;div id="socialcons"&gt; &lt;img src="css/img/twitter.jpg"&gt; &lt;img src="css/img/facebook.jpg"&gt; &lt;/div&gt; &lt;input type="text" name="search"&gt; &lt;button&gt;&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>My CSS looks like this:</p> <pre><code>#menu_container { clear:both; float:left; width:1000px; } #menu { float:left; width:700px; height:50px; background-color:#654a6f; } #home_button { height:50px; width:40px; float:left; background-image:url('img/home.jpg'); background-repeat:no-repeat; } #menu ul { background-color:#485860; } #menu li img { margin:0; padding:0; } #menu li { float:left; color:#ffffff; line-height:50px; padding-left:15px; padding-right:15px; text-shadow:1px 1px 2px #3e204d; } #menu li.active { background-image:url('img/menu_hover.jpg'); background-repeat:no-repeat; background-position:bottom center; } #menu li:hover { background-image:url('img/menu_hover.jpg'); background-repeat:no-repeat; background-position:bottom center; } #menu_collapse { position:absolute; float:left; width:1000px; height:50px; background-image:url('img/menu_collapse_bg.jpg'); background-repeat:repeat-x; background-color:#ffffff; z-index:99999; } #search_menu { height:40px; width:295px; padding-right:5px; padding-top:10px; float:right; line-height:50px; background-image:url('img/search_menu.jpg'); background-repeat:no-repeat; } #search_menu input { float:left; width:140px; } #search_menu button { height:32px; width:32px; border:0; outline:0; float:left; background-image:url('img/search.jpg'); } #socialcons { height:32px; width:75px; float:left; margin-left:20px; margin-right:10px; line-height:0; } #socialcons img { margin-left:3px; } </code></pre> <p>And here is my JQuery, Javascript:</p> <pre><code>$(document).ready(function() { $('#menu li').mouseover(function() { $('.active').removeClass('active'); $('#menu_collapse').animate({height:'210'}, 300); $('#menu li').mouseout(function() { $(this).addClass('active'); }); }); $('#menu_collapse').hover(function(){},function(){ $('#menu_collapse').animate({height:'50'}, 300); $('.active').removeClass('active'); }); }); </code></pre> <p>In IE7, and all "compatible" modes with IE, the div #menu_collapsable animates back up when I hover of it, thus defeating the purpose of having it. </p> <p>Help!!</p>
    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.
 

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