Skip to content

Instantly share code, notes, and snippets.

@RelativeMedia
Created October 14, 2011 04:04
Show Gist options
  • Select an option

  • Save RelativeMedia/1286205 to your computer and use it in GitHub Desktop.

Select an option

Save RelativeMedia/1286205 to your computer and use it in GitHub Desktop.
$(".text").labelify();
var menuLi = $('.home-top-navigation li');
var subMenu = $('.sub-menu');
if (menuLi.length){
menuLi.children('ul').hover(
function() {
$(menuLi).addClass('child-parent-hover-border');
},
function() {
$(menuLi).removeClass('child-parent-hover-border');
}
);
}
if ( menuLi.children(subMenu).length){
subMenu.parent('.home-top-navigation > li').hover(
function(){
$('.home-top-navigation > li > a').addClass('child-parent-hover-border');
},
function(){
$('.home-top-navigation > li > a').removeClass('child-parent-hover-border');
}
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment