Michael R�big wrote:
> Hi,
> I have a problem with the following script:
>
> ------------------------------
>
> <HTML>
> <HEAD>
>
> <script language="JavaScript">
> <!--
> function Show()
> {
> document.layers.test.visibility = "show"
> };
>
> function Hide()
> {
> document.layers.test.visibility = "hide"
> };
>
> // -->
> </SCRIPT>
>
> </HEAD>
> <BODY TEXT="#000000" >
> <a href="javascript:Vis();">Visible</A><br>
> <a href="javascript:Hid();">Hidden</A>
>
> <div style="position:absolute;visibility:visible" id="test">
> <table bgcolor="#FF0000" height="100" width="100">
> <tr>
> <td>
> Test
> </TD>
> </TR>
> </TABLE>
> </DIV>
>
> </BODY>
> </HTML>
>
> -----------------------------------------
>
> At start, the red table is visible. When I click on "Hide", the table
> disappears under NS4 but not under mozilla (ns5). Why?
>
> Bye
> Michael
document.layers isn't a standard Javascript call, check here
for details and what to use instead:
http://sites.netscape.net/ekrock/standards.html
--
Alex <:3)~~
http://www.gerbilbox.com/newzilla/