have a small div above (hover) a big one.
I assign onmouseover and onmouseout events to the wrapper div.
For image caption roll-over animation.
The problem is when the mouse is above the caption itself, causing an unwanted result(probably event bubbling).
And another problem: sometimes when you move mouse from outside to container you get a a triple debug sequence: (it should be just 2):
-I am over- -I am out- -I am over-
(firebug console)
How to make it work? (no jquery)
must work on all browsers.
Demo: [url]http://verror.netai.net/test.html
The wanted result:
When mouse moved over the image, only mouseover event should be raised once!
When mouse moved out from the image, only the mouseout event should be raised.
when mouse is over the captionm it should be treated as if the mouse is still on the image. (no flickering)