A wordpress site that I've been working seems to have something weird about the initiation of some of its scripts. The one that I am currently most concerned with is the drop-down header. It is obviously un-styled as I am just experimenting, but, if you look, it shouldn't be dropping down until a certain length down the page, and while it does that, on page load, it shows itself unti user interaction. Does anyone know what this might be happening? Any help would be much appreciated.
The site link it nextworld.kbddev.com
Here is my code for the bar:
$(function() { $(window).scroll(function(){ if($(window).scrollTop() > 542){ $("#follownav").slideDown("fast"); $('#follownav').removeClass('hide').addClass('show'); } }); $(window).scroll(function(){ if($(window).scrollTop() < 542){ $("#follownav").slideUp("fast"); } }); });