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