Difference between revisions of "Template:HSNU-TAIPEI/js/nav"
Line 15: | Line 15: | ||
var nav_bar = $("#top_menu_14"); | var nav_bar = $("#top_menu_14"); | ||
− | |||
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(); | |
− | + | flag = false; | |
− | + | console.log('fadeIn() has been called'); | |
− | + | } else { | |
− | + | nav_bar.fadeOut(); | |
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
}); | }); | ||
Revision as of 15:12, 3 April 2015