Difference between revisions of "Template:HSNU-TAIPEI/js/nav"
Line 12: | Line 12: | ||
showLeft.click(toggleMenu); | showLeft.click(toggleMenu); | ||
+ | |||
+ | |||
+ | var nav_bar = $("#top_menu_14"); | ||
+ | nav_bar.hide(); | ||
+ | $(document).mousemove(function(event) { | ||
+ | if(event.pageY <= 20) { | ||
+ | nav_bar.fadeIn(); | ||
+ | } else { | ||
+ | nav_bar.fadeOut(); | ||
+ | } | ||
+ | }); | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 13:28, 3 April 2015