I've got:
<div class='someclass'>Text</div>
<div class='otherclass'>Other Text</div>
<style>
.someclass{
width:400px;
height:200px;
}
.otherclass{
width:400px;
height:200px;
display:none;
}
</style>
$('.someclass').mouseover(function(){
$('.otherclass').fadeIn();
});
$('.someclass).mouseout(function(){
$('.otherclass').fadeOut();
});
But I dont want second div to fade out if the cursor goes over this second div.
I can use
$('.someclass,.otherclass').mouseover(function(){
$('.otherclass').fadeIn();
});
$('.someclass,.otherclass').mouseout(function(){
$('.otherclass').fadeOut();
});
but it blinks by crossing from one div to another.
I think, I can use timeouts, but is there a better way? Thx!