2012-05-16 7 views
0

안녕 얘들 아 내가 웹 프로그래밍 초보자 해요, 내 코드에 문제가 :드롭 다운 메뉴 변경

내가 $("a.adlog:link")을 클릭하면 ("#adminBox").slideUp('slow')가 처리되는 방식을 변경하려면
$(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"); 
}); 
}); 


.

+1

모르겠다. – powtac

+0

http://jsfiddle.net/에서 HTML 및 CSS 코드를 붙여 넣을 수 있습니까? – Thulasiram

+0

Bluesvega, ** HOW ** 어떻게 변경 하시겠습니까? 현재 행동과 *** 바람직한 *** 행동을 자세하게 기술하십시오. 필요한 경우 사진을 포함하십시오. –

답변

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

});