Difference between revisions of "Template:HSNU-TAIPEI/js/nav"
Line 14: | Line 14: | ||
− | + | var nav_bar = $("#top_menu_14"); | |
+ | nav_bar.hide(); | ||
+ | $(document).mousemove(function(event) { | ||
+ | if(event.pageY <= 20) { | ||
+ | nav_bar.fadeIn(); | ||
+ | flag = false; | ||
+ | console.log('fadeIn() has been called'); | ||
+ | } else if(!nav_bar.filter(':hover')) { | ||
+ | nav_bar.fadeOut(); | ||
+ | } | ||
+ | }); | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 15:18, 3 April 2015