Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

Dhtml menu problem

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

kareltje

Established Member
Impact
0
The following code works wel in firefox but doesn't do the job flawlessly in IE. You can try it out here. In IE, try moving the mouse vertically over the menu, you'll see what i mean. Any clue why this is happening and what i can do about it?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="javascript">
function show(lyr) {

var browserType;


if (document.layers) {browserType = "nn4"}
if (document.all) {browserType = "ie"}
if (window.navigator.userAgent.toLowerCase().match("gecko")) {browserType= "gecko"}


if (browserType == "gecko" ) {
document.poppedLayer = eval('document.getElementById(lyr)');
}
else if (browserType == "ie") {
document.poppedLayer = eval('document.all[lyr]');
}
else {
document.poppedLayer = eval('document.layers[lyr]');
}
if(document.poppedLayer.style.display == "none") {
document.poppedLayer.style.display='inline';
}
else {
document.poppedLayer.style.display='none';
}
}

</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {font-family: Arial, Helvetica, sans-serif}
-->
</style>
</head>

<body>

<div id="menu1" onmouseover="javascript:show('menu1_');" onmouseout="javascript:show('menu1_');" style="width:300px; background-color:#FFFFCC">
<div align="right">
<table width="100%" border="0" cellspacing="0">
<tr>
<td><div align="right" class="style1">Biography</div></td>
</tr>
<tr>
<td><div id="menu1_" style="display:none">Content for id "menu1_" Goes Here</div></td>
</tr>
</table>

</div>
</div>
<div id="menu2" onmouseover="javascript:show('menu2_');" onmouseout="javascript:show('menu2_');" style="width:300px; background-color:#FFFFCC">
<div align="right">
<table width="100%" border="0" cellspacing="0">
<tr>
<td><div align="right" class="style1">Bibliography</div></td>
</tr>
<tr>
<td><div id="menu2_" style="display:none">Content for id "menu2_" Goes Here</div></td>
</tr>
</table>

</div>
</div>

</body>
</html>
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
CatchedCatched

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover

NamePros updates

New in Parking: updated way to act on many domains or inquiries at once
Your domain list and inquiry list now have a bar above and below the list. Check the items you want, then choose an action in the bar...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back