I think its a problem with nested divs.
If i have an outermost div with onmouseout set and when i move a mouse
from the outermost div to inside
one of the nested div's then the onmouseout is still called. Same is the
case if i move the mouse between any one of the nested divs. (if you
move from the parent div to any one of the nested div, it is still
considered as a mouseout).
<div id="outer" onmouseout="foo1()>
<div id="inner1" >... </div>
<div id="inner2" >... </div>
</div>
When you move your mouse inside the inner1 or inner2 div's the foo1()
method is still invoked.
-Venky
Stephan Bardubitzki wrote:
> Hi,
>
> I have a static text and when the mouse moves over a menu pops up.
> This works fine.
> [code]
> <webuijsf:staticText binding="#{Index.staticText2}" id="staticText2"
>
> onMouseOver="displayMenuOne(event); return false;"
> style="color:
> #ffffcc" text="#{msgs.navigation_solutions}"/>
> [/code]
>
> Now, I want when the mouse moves out of the popup menu that it
> disappears. But it appears that as soon as the mouse moves over the
> popup menu this effect already happens. Is this intended behavior or
> maybe a bug?
>
> [code]
> <webuijsf:menu eventExpression="#{SessionBean1.selectedAction}"
> eventListenerExpression="#{SessionBean1.menuSelection}" id="popup1"
> items="#{ SessionBean1.optionItems1}"
> onMouseOut="document.getElementById("form1:popup1").setProps({visible:
> false});" submitForm="true"/>
> [/code]
>
> Stephan