Difference between revisions of "Template:HSNU-TAIPEI/js/nav"
Line 19: | Line 19: | ||
if(event.pageY <= 20) { | if(event.pageY <= 20) { | ||
nav_bar.fadeIn(); | nav_bar.fadeIn(); | ||
+ | } else { | ||
+ | nav_bar.mouseleave(function() { | ||
+ | $(this).fadeOut(); | ||
+ | }); | ||
} | } | ||
}); | }); | ||
− | |||
− | |||
− | |||
</script> | </script> | ||
</html> | </html> |
Revision as of 14:24, 3 April 2015