I have created a menu, with 3 tiers.
The problem occurs after clicking the top-level items. What you will notice is that there is a LI:Hover pseudo class on the top items which highlights them grey when you hover over them. If you click on one of these top items, then wait for 2 seconds off the menu area, it will revert back to the current page’s menu item.
Here is where the problem occurs. If you now hover over the top menu item you just clicked, its pseudo hover seems to have disappeared, or become disabled.
I am not sure if this is a jQuery/Javascript error on my part or a CSS mistake.
Any help would be great!
Thanks, Devin
After the animation has run the
<li>ends up in the following statewith the inline
background-colorwhich overrides the CSS ruleChanging the revert() method from
$curMenuTop.css('backgroundColor', 'transparent');to$curMenuTop.css('backgroundColor', '');should fix the problem as it removes the backgroundColor, rather than setting it totransparentand allows :hover to still win where necessary.