views:

56

answers:

1

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 divSmall a child of divBig.
  • Add the event handlers to Container.
  • Add event handlers to divSmall that fire the event handlers of divBig.

Personally, I would go for options 1 or 2.

Andy E
it doesn't work, when the mouse on small div the OutMe is triggered.
luppi
and in IE I get: 'stopPropagation' is null or not an object
luppi
@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
If I add same events on container it still doesn't work
luppi
Please take a look at my full example that I added to the question
luppi