Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get header height jquery

var headerHeight = $('header').outerHeight();

$(window).scroll(function () {
    if ($(window).scrollTop() > headerHeight) { 
        $('#top_nav').slideDown("slow");
    }
    else{
        $('#top_nav').slideUp("fast");
    }
});
 
PREVIOUS NEXT
Tagged: #header #height #jquery
ADD COMMENT
Topic
Name
6+8 =