1
, 모든 것이 OK 작동합니다.hoverIntent + 닫기 버튼 (제한 시간 문제?) 나는 쇼핑 가방 (#bagContainer)와 hoverIntent을 사용하고
function bagOver(){
$(this).find("#bagContainer").stop().fadeTo('fast', 1).show();
}
function bagOut(){
$(this).find("#bagContainer").stop().fadeTo('fast', 0, function() {
$(this).hide();
});
}
var bagHoverConfig = {
over: bagOver,
bagTimeout: 3000,
out: bagOut
};
$("#userBox .row:nth-child(2)").hoverIntent(bagHoverConfig);
는하지만 가방 내부에 "추가"닫기 버튼 (#bagCollapser)를 추가 할 필요가, 뭔가 같은 :
$("#bagCollapser").click(function() {
$('#bagContainer').hide();
});
그것은 #bagContainer을 닫습니다하지만 hoverIntent와 충돌이 보인다 :
- 버튼 가방을 숨기고 있지만, 가방이 버튼을 통해 폐쇄 된 경우 그리고, bagTimeout 후 hoverIntent 다시
- 을 숨긴다 hoverIntent의 시간 초과/지연이 지날 때까지 다시 표시 할 수 없습니다.
아이디어가 있으십니까?
미리 감사드립니다.