2011-08-09 2 views

答えて

2

$('.the-divs').mouseenter(function() { 
    $(this).siblings().fadeOut(); // or whatever animation, eventually with delay() 
}); 
0

あなたはこのような他者そのdivを配置する必要があります私の例ではdivを絶対的な位置に設定しています。

example

var $threeDivs = $('#container > div'); 

$threeDivs.hover(function() { // mouseover 
    $(this).siblings().stop(true, true).fadeOut(); 
}, function() { // mouseout 
    $(this).siblings().stop(true, true).fadeIn(); 
}); 
関連する問題