I currently have this (Using jQuery):
<div>
<div class="imgNav" id="info1" onmouseout='$("#info1").hide(); $("#img1").show();'>
<p>Stuff</p>
<p><a href="#">Enlarge</a></p>
</div>
<span id="img1" onmouseover='$("#info1").fadeIn(); $("#img1").hide();'><img src="images/thumbs/image.png" /></span>
</div>
My problem is that when I hover over info1 and one of its sub elements (p or a), it activates the onmouseout effect. Only though when I cross that invisable box line that surrounds them.
So the effect is this constant mouseover/mouseout effect when I hover over the sub elements (Once I hover over the sub elements, img1 shows, but then I mouseover that so info1 starts to show).
Anyone know how to fix this?
Thanks in advance for any help!

New Topic/Question
Reply



MultiQuote




|