BradThor
06-09-2005, 10:54 PM
The following is an example of the problem Im having with some HTML. The problem seems to only appear in Firefox 1.01 and NN 8.0.
(I know this isnt the prettiest of code, but it does represent a problem I have)
If you notice in Firefox/NN, when you mouseOver the Menu item, the popup window loses focus when your pointer moves over the other Div (this also is the case if I use an IFRAME).
Ive tried absolute positioning the DIV and adding a Z-index and that solved nothing..
Does anyone have any pointers to help me out?
<html>
<head>
<title>Sample Page</title>
<script>
<!--
function GetMenu(mName, mState) {
var CurrMenu = document.getElementById (mName);
if (mState)
CurrMenu.style.visibility = "visible";
else
CurrMenu.style.visibility = "hidden";
}
-->
</script>
</head>
<body>
<table cellpadding="5">
<tr>
<td bgcolor="#999999"><a href="#" onMouseOut="GetMenu('menuPopUp',false);" onMouseOver="GetMenu('menuPopUp',true);">Mouse Over This</a></td>
<td>
<div style="overflow: auto; background-color: #CCCCCC; layer-background-color: #CCCCCC; border: 1px none #000000; padding: 5; height: 152px; width: 325px;">
Content Goes Here<br>
Content Goes Here<br>
Content Goes Here<br>
Content Goes Here<br>
Content Goes Here<br>
Content Goes Here<br>
Content Goes Here<br>
Content Goes Here<br>
Content Goes Here<br>
</div>
</td>
</tr>
</table>
<div id="menuPopUp" style="visibility: hidden; position: absolute;top:85px;left:115px;" onMouseOut="GetMenu('menuPopUp',false);" onMouseOver="GetMenu('menuPopUp',true);">
<table bgcolor="#333333" bordercolor="#000000" border="1">
<tr><td><a href="" style="color:white;">My Groovy Popup</a></td></tr>
</table>
</div>
</body>
</html>
(I know this isnt the prettiest of code, but it does represent a problem I have)
If you notice in Firefox/NN, when you mouseOver the Menu item, the popup window loses focus when your pointer moves over the other Div (this also is the case if I use an IFRAME).
Ive tried absolute positioning the DIV and adding a Z-index and that solved nothing..
Does anyone have any pointers to help me out?
<html>
<head>
<title>Sample Page</title>
<script>
<!--
function GetMenu(mName, mState) {
var CurrMenu = document.getElementById (mName);
if (mState)
CurrMenu.style.visibility = "visible";
else
CurrMenu.style.visibility = "hidden";
}
-->
</script>
</head>
<body>
<table cellpadding="5">
<tr>
<td bgcolor="#999999"><a href="#" onMouseOut="GetMenu('menuPopUp',false);" onMouseOver="GetMenu('menuPopUp',true);">Mouse Over This</a></td>
<td>
<div style="overflow: auto; background-color: #CCCCCC; layer-background-color: #CCCCCC; border: 1px none #000000; padding: 5; height: 152px; width: 325px;">
Content Goes Here<br>
Content Goes Here<br>
Content Goes Here<br>
Content Goes Here<br>
Content Goes Here<br>
Content Goes Here<br>
Content Goes Here<br>
Content Goes Here<br>
Content Goes Here<br>
</div>
</td>
</tr>
</table>
<div id="menuPopUp" style="visibility: hidden; position: absolute;top:85px;left:115px;" onMouseOut="GetMenu('menuPopUp',false);" onMouseOver="GetMenu('menuPopUp',true);">
<table bgcolor="#333333" bordercolor="#000000" border="1">
<tr><td><a href="" style="color:white;">My Groovy Popup</a></td></tr>
</table>
</div>
</body>
</html>