Good day,
I have these div(s) containers with 2 inner div(s) holding (a) image & (b) text description respectively.
I hide these (b) text description div(s) using .hide() when page load, then using .hover() to show/hide the hidden text description div, sample code below:
<div class="projectBlock">
<div class="imgBlock" id="imgBlock1"><a href="http://www.tesco.com.my" target="_blank"><img src="http://i23.photobucket.com/albums/b395/yiyonglee/thumb-project-tesco.jpg"></a>
</div>
<div class="descBlock" id="descBlock1">Tesco Malaysia</div>
The show/hide works fine, except if mouseover area hit somewhere inside the descrption text area, the div container flickers while moving around.
my jQuery portion:
$('.descBlock').hide();
$('#imgBlock1').hover(function () {
$('#descBlock1').show();
}, function () {
$('#descBlock1').hide();
});
$('#imgBlock2').hover(function () {
$('#descBlock2').show();
}, function () {
$('#descBlock2').hide();
});
Demo here: jsfiddle
Why is it acting in such way? Thanks in advance.