I am reposting this question in a better format...
+2
A:
divSmall isn't a child of divBig, so the onmouseover event will not propagate/bubble to divBig from divSmall. This leaves you with several options:
- Make
divSmalla child ofdivBig. - Add the event handlers to
Container. - Add event handlers to
divSmallthat fire the event handlers ofdivBig.
Personally, I would go for options 1 or 2.
Andy E
2010-02-04 15:32:27
it doesn't work, when the mouse on small div the OutMe is triggered.
luppi
2010-02-04 16:16:29
and in IE I get: 'stopPropagation' is null or not an object
luppi
2010-02-04 16:16:59
@luppi: Sorry, I rushed through the reading of your source code and thought `divSmall` was a child of `divBig`. I've corrected my answer.
Andy E
2010-02-04 16:44:38
If I add same events on container it still doesn't work
luppi
2010-02-04 16:56:51
Please take a look at my full example that I added to the question
luppi
2010-02-04 23:22:01