[RESOLVED] onMouseOver animation = DIV contains IMG
Here is the HTML =
<div class="stili" onMouseOver="moveUp();" onMouseOut="moveDown()";> <h2> Flowers </h2> <img id="myImage" src="img/tabela.png"></div>
As you can see, there is a DIV containing an H2 and an IMG.
When the mouse enters the DIV, the image scrolls a little up.
When the mouse leaves the DIV, the image scrolls back again.
It works Ok.
The problem is when the mouse goes over the IMG, it moves erratically.
I suspect this is because the DIV gets an onMouseOut event when the mouse goes over the IMG.
Is this how it works ? Because the pointer is still inside the DIV too, so technically it is not correct to
send him an onMouseOut event, is it ?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)