Jquery 下拉菜单更改
大家好,我是网络编程新手,我的代码有问题:Jquery 下拉菜单更改,jquery,menu,drop-down-menu,Jquery,Menu,Drop Down Menu,大家好,我是网络编程新手,我的代码有问题: $(document).ready(function(){ $("#adminBox").parent().append("<span></span>"); $("a.adlog:link").click(function() { $(this).parent().find("#adminBox").slideDown('fast').show(); $(this).parent().hover(fun
$(document).ready(function(){
$("#adminBox").parent().append("<span></span>");
$("a.adlog:link").click(function() {
$(this).parent().find("#adminBox").slideDown('fast').show();
$(this).parent().hover(function() {
}, function(){
$(this).parent().find("#adminBox").slideUp('slow'); //here i want to change...
});
}).hover(function() {
$(this).addClass("a.adlog:hover");
}, function(){
$(this).removeClass("a.adlog:hover");
});
});
$(文档).ready(函数(){
$(“#adminBox”).parent().append(“”);
$(“a.adlog:link”)。单击(函数(){
$(this.parent().find(#adminBox”).slideDown('fast').show();
$(this.parent().hover(function()){
},函数(){
$(this.parent().find(#adminBox”).slideUp('slow');//我想在这里更改。。。
});
}).hover(函数(){
$(this.addClass(“a.adlog:hover”);
},函数(){
$(this.removeClass(“a.adlog:hover”);
});
});
我想更改单击
$(“a.adlog:link”)
时处理(“#adminBox”).slideUp('slow')
的方式。试试这个
$(document).ready(function(){
$("#adminBox").parent().append("<span></span>");
$(".adlog").click(function() {
$(this).parent().find("#adminBox").slideDown('fast');
})
$(".adlog").parent().hover(function() {
}, function(){
$(this).parent().find("#adminBox").slideUp('slow'); //here you want to change...
});
$(".adlog").hover(function() {
$(this).addClass("adlogHover");
}, function(){
$(this).removeClass("adlogHover");
});
});
$(文档).ready(函数(){
$(“#adminBox”).parent().append(“”);
$(“.adlog”)。单击(函数(){
$(this.parent().find(#adminBox”).slideDown('fast');
})
$(“.adlog”).parent().hover(函数(){
},函数(){
$(this.parent().find(#adminBox”).slideUp('slow');//您想在这里更改。。。
});
$(“.adlog”).hover(函数(){
$(this.addClass(“adlogHover”);
},函数(){
$(this.removeClass(“adlogHover”);
});
});
您可以将html和css代码粘贴到中吗?Bluesvega,您希望如何更改?详细描述当前行为和所需的行为。如有必要,请附上图片。