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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript in Layers

Status
Not open for further replies.

Falcon Ways

Technical User
Mar 25, 2003
30
GB
Can anyone please tell my why this code does not work in Netscape 4, unless the loadLayer function is inside the MENU1 layer.



<HTML>
<BODY>
<script>
function showLayer()
{
document.MENU1.visibility = &quot;visible&quot;;
}
</script>

<script>
function loadLayer()
{
document.writeln ('text to display');
}
</script>

<a onMouseOver=&quot;showLayer();&quot; href=&quot;#&quot;>Home</a>

<div id=&quot;MENU1&quot; style=&quot;visibility: hidden; position: absolute&quot;>
<script>loadLayer()</script>
</div>
</BODY>
</HTML>

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top