Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

netscape 4 will not show hidden table

Status
Not open for further replies.

vasah20

Programmer
Feb 16, 2001
559
US
hello -
I can't get my hidden tables to show up in Netscape 4. It works fine in IE5.5 and N6, but for some reason nothing comes up in Netscape 4.
Here's the code for my table:

<div class=&quot;popUpMenu&quot; id=&quot;autoMenu&quot; STYLE=&quot;POSITION: absolute; Z-INDEX: 521; VISIBILITY: hidden; TOP: 0px; LEFT: 0px;&quot;>
<table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; border=&quot;0&quot;>
<tr><td>Auto_Accessories</td></tr>
<tr><td>Battery_Products</td></tr>
<tr><td>Car_Cleaning_Products</td></tr>
<tr><td>Lubrication_Products</td></tr>
<tr><td>Spark_Plugs</td></tr>
</table>
</div>

here's the code for the popup:
Code:
 function showMenu(menuID){
	if (DOM){
		var divRef = document.getElementById(menuID);
		if (divRef){
			divRef.style.visibility = &quot;visible&quot;;
			assignDivLeft(menuID);
	        }
	}else{
		exists = (NN)?eval('document.layers[&quot;' +menuID+ '&quot;];'):eval('document.all[&quot;' +menuID+ '&quot;]');
		if (exists){
			assignDivLeft(menuID);
			if (NN) eval('document.layers[&quot;' +menuID+ '&quot;].visibility = &quot;show&quot;;');
			else eval('document.all[&quot;' +menuID+ '&quot;].style.visibility = &quot;visible&quot;;');
		}
	}
 }

then i show it with a simple
<img src=&quot;something.gif&quot; onmouseover=&quot;javascript: showMenu('autoMenu');&quot;>

If I take out all the table tags and replace the <tr><td>s with <span>s, the thing shows up perfectly. there must be something I'm missing...

any insight on this would be greatly appreciated.
thanks
 
if (NN) eval('document.layers[&quot;' +menuID+ '&quot;].display = &quot;block&quot;;');
should be better !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top