When you hover the submenu drops down and the arrow next to Poly turns down, however, when you move your mouse to select a link from the submenu the arrow tuns back up because you are no longer hovering over the poly link?
$(document).ready(function(){
$('#nav li ul').css({ /*overrides .CSS and hides submenus*/
display: "none",
left: "auto"
});
$('#nav li').hoverIntent(function() { /*plugin smooths everything out compared to just using hover*/
$('#nav a.poly').addClass('clicked');
$(this)
.find('ul') /*find all the children ul contained and display*/
.stop(true, true) /* stops other animations from queing up if mouse moves to fast*/
.slideDown('slow');
},function() {
$('#nav a.poly').removeClass('clicked');
$(this)
.find('ul')
.stop(true,true)
.slideUp('slow');
});
});
This means that while the list is hovered all anchors will have a background image applied and that image will remain as long as the list is hovered (which is exactly what’s needed because it’s the hovering on the list that makes the ul appear also).
As this rule would affect all anchors in the nested list also we therefore need one more rule to turn the images off on the nested list.
#nav li:hover li a{background-image:none}
In your original example you were turning the arrow on with a:hover which means that as soon as you moved off the anchor the image disappeared.
My example makes the arrow image dependent on the list being hovered which makes it persistent all the time the list is hovered.