get header height jquery code example
Example: get header height jquery
var headerHeight = $('header').outerHeight();
$(window).scroll(function () {
if ($(window).scrollTop() > headerHeight) {
$('#top_nav').slideDown("slow");
}
else{
$('#top_nav').slideUp("fast");
}
});