this is not set !
$(window).scroll(function (event) {
var y = $(window).scrollTop();
if (y > 200) {
$(‘.floatnav’).fadeIn();
} else {
$(‘.floatnav’).fadeOut();
}
});
OR
jQuery(window).scroll(function (event) {
var y = jQuery(window).scrollTop();
if (y > 200) {
jQuery(‘.floatnav’).fadeIn();
} else {
jQuery(‘.floatnav’).fadeOut();
}
});
and better / jQuery(‘.floatnav’).stop().fadeIn();