Google+ Tools
Make Google+ profile picture
Make Google plus banners for profile
Create and share your Google Plus profile banners.

Profile image for mrk studios rumremix on June 15, 2012

The class, "activeDDParent", needs css that will cause the parent to have the same hover effect it has when the mouse hovers over it. This class allows for the out-of-the-box sharepoint rollof delay.

Language
JavaScript
Tags

get hover effect of global nav parent link to roll off at same time dropdown goes away in out of the box sharepoint global nav


<script type="text/javascript">
var thishchild;
$(function() {

    $('div[id*=zz1_GlobalNavigationn]').hover( 
      function () {
        parentHighlight($(this));
       }, 
      function () {
      }
    );
    
    $('.portalnavwrapper').hover( 
      function () {
            }, 
      function () {
        setTimeout("rollOffAll()",500);
      }
    );


});


function parentHighlight(child) {
    var linkIndex = child.attr('id');
    if (linkIndex.indexOf("Items") > -1 ) { 
        linkIndex = linkIndex.split("GlobalNavigationn")[1]; 
        linkIndex = linkIndex.split('Items')[0];
        $('#zz1_GlobalNavigationn' + linkIndex).addClass('activeDDParent');
    }
}

function rollOffAll() {
 $(".activeDDParent").removeClass("activeDDParent");

}


</script>

Comments

blog comments powered by Disqus