0

こんにちは皆さん、私は Web プログラミングの初心者で、コードに問題があります。

$(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");
});
});


がクリック("#adminBox").slideUp('slow')されたときの処理 方法を変更したい。$("a.adlog:link")

4

1 に答える 1

1

これを試してみてください。

$(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");
});

});
于 2012-05-18T08:38:05.550 に答える