Difference between revisions of "Template:HSNU-TAIPEI/js/nav"
Line 16: | Line 16: | ||
secondLayerList.hover( | secondLayerList.hover( | ||
function() { | function() { | ||
− | $(this).children('.seclayer-nav').fadeIn(); | + | $(this).children('.seclayer-nav').fadeIn('fast'); |
}, function() { | }, function() { | ||
− | $(this).children('.seclayer-nav').fadeOut(); | + | $(this).children('.seclayer-nav').fadeOut('fast'); |
} | } | ||
); | ); | ||
Line 27: | Line 27: | ||
$(document).mousemove(function(event) { | $(document).mousemove(function(event) { | ||
if(event.pageY <= 20) { | if(event.pageY <= 20) { | ||
− | nav_bar.fadeIn( | + | nav_bar.fadeIn(); |
} else if(nav_bar.filter(':hover').length === 0) { | } else if(nav_bar.filter(':hover').length === 0) { | ||
− | nav_bar.fadeOut( | + | nav_bar.fadeOut(); |
} | } | ||
}); | }); |
Latest revision as of 15:54, 3 April 2015