jquery - Hide Div on Scroll Show Div On Hover -



jquery - Hide Div on Scroll Show Div On Hover -

im not expert on jquery, im trying create lower menu hide when scroll (.smenu-lower) , show/toggle menu when hover on #sticky-menu

$(window).scroll(function (event) { var y = $(this).scrolltop(); if (y > 0) { $('.smenu-lower').slideup('fast'); } else{ $('.smenu-lower').slidedown('fast'); } $(function() { $('#sticky-menu').hover(function() { $('.smenu-lower').show(); }, function() { $('.smenu-lower').hide(); }); });

posted here http://jsfiddle.net/yhrbw/

jquery html menu hide show

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -