Barry
2009-12-21 12:12:01 UTC
Hi,
My code move divs up/down using z-index, and works fine for other browser,
but ie7 the display 'judders up/down' because ie fires mouseover/mouseout
when moving between childs of the parent div.
Is there a simple way to use mouseenter/leave just for ie.
The code snippet is shown below.
ALSO - I tried fireing event with an absolute div placed over the
appropraite place - but if you have a div with just a border - ie seems to
fire the mouseover/out when the mouse enters/leaves the border!! - not (as I
expected) when it enters /leaves the rectangular area. Is this correct?
Snippet
<div id="menu1mousemove" style="background-color:blue;left: 164px; top:
19px; z-index:4;position:absolute;width:400px;height:270px;border: thick
orange solid; "
onclick="FP_changeProp(/*id*/'menu1container',0,'style.zIndex','0') ;
FP_changeProp(/*id*/'menu1shad',0,'style.visibility','hidden')"
onmouseout="FP_changeProp(/*id*/'menu1container',0,'style.zIndex','0') ;
FP_changeProp(/*id*/'menu1shad',0,'style.visibility','hidden')"
onmouseup="FP_changeProp(/*id*/'menu1container',0,'style.zIndex','0')"
onmouseover="FP_changeProp(/*id*/'menu1container',0,'style.zIndex','9') ;
FP_changeProp(/*id*/'menu1shad',0,'style.visibility','visible')" >
My code move divs up/down using z-index, and works fine for other browser,
but ie7 the display 'judders up/down' because ie fires mouseover/mouseout
when moving between childs of the parent div.
Is there a simple way to use mouseenter/leave just for ie.
The code snippet is shown below.
ALSO - I tried fireing event with an absolute div placed over the
appropraite place - but if you have a div with just a border - ie seems to
fire the mouseover/out when the mouse enters/leaves the border!! - not (as I
expected) when it enters /leaves the rectangular area. Is this correct?
Snippet
<div id="menu1mousemove" style="background-color:blue;left: 164px; top:
19px; z-index:4;position:absolute;width:400px;height:270px;border: thick
orange solid; "
onclick="FP_changeProp(/*id*/'menu1container',0,'style.zIndex','0') ;
FP_changeProp(/*id*/'menu1shad',0,'style.visibility','hidden')"
onmouseout="FP_changeProp(/*id*/'menu1container',0,'style.zIndex','0') ;
FP_changeProp(/*id*/'menu1shad',0,'style.visibility','hidden')"
onmouseup="FP_changeProp(/*id*/'menu1container',0,'style.zIndex','0')"
onmouseover="FP_changeProp(/*id*/'menu1container',0,'style.zIndex','9') ;
FP_changeProp(/*id*/'menu1shad',0,'style.visibility','visible')" >
--
Thanks ... Barry
Thanks ... Barry