私はこのメニューを持っています: http://tabletest.orgfree.com/
私はこの機能を使用します:
function mainMenu(){
(function($){
//cache nav
var nav = $("#nav");
//add indicator and hovers to submenu parents
nav.find("li").each(function() {
if ($(this).find("ul").length > 0) {
//$("<span>").text("^").appendTo($(this).children(":first"));
//show subnav on hover
$(this).mouseenter(function() {
$(this).find("ul").stop(true, true).slideDown();
});
//hide submenus on exit
$(this).mouseleave(function() {
$(this).find("ul").stop(true, true).slideUp();
//alert("this is an alert!");
});
}
});
})(jQuery);
};
slideDown はうまく機能しますが、slideUp は機能しません。誰かがこれを手伝ってくれれば、理由がわかりません。
ありがとう。