I am really beginning to understand why a lot of people i know hate Netscape 4. Unfortunately, i have been given a project to come up with something compatible with ALL versions of Netscape.
I have a simple page containing links which make hidden layers visible. Ultimately, there will be many layers, so i want to come up with a function which populates each layer.
This i have done, but i cannot call the function unless it is contained within the same <DIV>
Here is the code i have (stripped of all non essential code)
<HTML>
<BODY>
<script>
function showLayer() {
document.MENU1.visibility = "visible";
}
</script>
<script>
function loadLayer(text){
document.writeln ('second test');
}
</script>
<a onMouseOver="showLayer();" href=http://www.webdeveloper.com/forum/archive/index.php/"#">Home</a>
<div id="MENU1" style="visibility: hidden; position: absolute">
test<br>
<script>loadLayer()</script>
</div>
</BODY>
</HTML>
If you move the loadLayer function inside the MENU1 div, it shows fine when the text is clicked. Outside and it doesn't show.
Can anyone help? Pleeeeeeze!
I have a simple page containing links which make hidden layers visible. Ultimately, there will be many layers, so i want to come up with a function which populates each layer.
This i have done, but i cannot call the function unless it is contained within the same <DIV>
Here is the code i have (stripped of all non essential code)
<HTML>
<BODY>
<script>
function showLayer() {
document.MENU1.visibility = "visible";
}
</script>
<script>
function loadLayer(text){
document.writeln ('second test');
}
</script>
<a onMouseOver="showLayer();" href=http://www.webdeveloper.com/forum/archive/index.php/"#">Home</a>
<div id="MENU1" style="visibility: hidden; position: absolute">
test<br>
<script>loadLayer()</script>
</div>
</BODY>
</HTML>
If you move the loadLayer function inside the MENU1 div, it shows fine when the text is clicked. Outside and it doesn't show.
Can anyone help? Pleeeeeeze!