hide layer not working on netscape

wxdqz

New Member
I am using this script to show hide layers;

<head>
<script type="text/javascript">

function show(id)
{
eval("document.all." + id + ".style.visibility = 'visible';");
return;
}

function hide(id)
{
eval("document.all." + id + ".style.visibility = 'hidden';");
return;
}

</script>
</head>
<body>
<a href = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"#" onclick = "hide('layer1');"
</body>

This works fine on IE and Opera but it isn't working on Mozilla or Netscape7. Any ideas why? Or what I should use?
 
Back
Top