When you have a DIV around a DIV (as example for design/layout reasons) and you want to detect the mouse out of the parent DIV, it does not work by simply using the event handler onmouseout="" in the nested DIV. For that, you need to use a workaround function like this: