Difference between revisions of "Template:SJTU-BioX-Shanghai"

Line 18: Line 18:
 
$("ul#nav--desktop li.dropdown_main_menu").hover(
 
$("ul#nav--desktop li.dropdown_main_menu").hover(
 
function(){isMouseOver = true;$(this).find(".dropdown").stop(!0,!0).delay(200).fadeIn(250)},
 
function(){isMouseOver = true;$(this).find(".dropdown").stop(!0,!0).delay(200).fadeIn(250)},
function(){if(isMouseOver){$(this).find(".dropdown").stop(!0,!0).delay(200).fadeOut(250)}});
+
function(){$(this).find(".dropdown").stop(!0,!0).delay(200).fadeOut(250)});
 
        $("ul#nav--desktop li.dropdown_main_menu").click(
 
        $("ul#nav--desktop li.dropdown_main_menu").click(
 
function(){isMouseOver = false;$(this).find(".dropdown").stop(!0,!0).delay(200).fadeIn(250)});
 
function(){isMouseOver = false;$(this).find(".dropdown").stop(!0,!0).delay(200).fadeIn(250)});

Revision as of 13:12, 14 October 2018