Difference between revisions of "Template:HSNU-TAIPEI/js/nav"
Line 4: | Line 4: | ||
var menu = $("#main-menu"), | var menu = $("#main-menu"), | ||
showLeft = $(".showLeft"), | showLeft = $(".showLeft"), | ||
− | menuButton = $(".menu-button"); | + | menuButton = $(".menu-button"), |
+ | secondLayerList = $(".seclayer"); | ||
function toggleMenu() { | function toggleMenu() { | ||
Line 12: | Line 13: | ||
showLeft.click(toggleMenu); | showLeft.click(toggleMenu); | ||
+ | |||
+ | secondLayerList.hover( | ||
+ | function() { | ||
+ | $(this).children('.seclayer-nav').fadeIn('fast'); | ||
+ | }, function() { | ||
+ | $(this).children('.seclayer-nav').fadeOut('fast'); | ||
+ | } | ||
+ | ); | ||
Revision as of 15:47, 3 April 2015