Hello, I have a menu and jquery-code, which makes its background-image different when hover.
$('#menu a').hover(function() {
$(this).css( 'background', 'url(images/slider_bg_hover.png) repeat-x' );
},function(){
$(this).css( 'background', 'url(images/slider_bg.png) repeat-x' );
});
It works fine, but now I want to highlight clicked menu:
$('#menu a').click(function() {
$(this).css( 'background', 'url(images/slider_bg_hover.png) repeat-x' );
});
It works fine too, but after clicking I move my mouse-pointer from menu-area and hover-action calls! So that part of menu is unhiglighted!
What can u advice me?