Difference between revisions of "Template:HSNU-TAIPEI/js/nav"
Line 18: | Line 18: | ||
nav_bar.hide(); | nav_bar.hide(); | ||
$(document).mousemove(function(event) { | $(document).mousemove(function(event) { | ||
− | if(event.pageY <= 20 | + | if(event.pageY <= 20) { |
− | nav_bar.fadeIn(); | + | if(flag === true) { |
+ | nav_bar.fadeIn(); | ||
+ | } | ||
} else { | } else { | ||
nav_bar.mouseleave(function() { | nav_bar.mouseleave(function() { |
Revision as of 14:43, 3 April 2015