I need some serious help with getting properties of a nested layer in
Netscape 4.X. The problem I'm having is that the outer layer contains a
table in which I have id in the <td>s. I have tried displaying the
objects I get back from my calls and I keep getting "undefined". Here is
the main part of the body that I am having problems with:
<div id="MainMenu">
<table border="0">
<tr>
<td id="Menu1" onmouseover="ShowLayer(1);">MainMenu 1</td>
<td id="Menu2">MainMenu 2</td>
<td id="Menu3">MainMenu 3</td>
</tr>
</table>
</div>
Within ShowLayer(n), I have an if clause to check for Netscape 4.X. Then,
within the if, I have a line that reads:
MenuShow = "Menu" + n;
alert(document.layers['MainMenu'].layers[MenuShow]);
However, when the alert pops up, all I get is "undefined". If however, I
change the alert to display document.layer['MainMenu'], I get "[object
Layer]" for a value.
I would appreciate any and all help I can get.
Thank you,
Chris Cote