I am not get this to actually hide/show the layer in the topframe. Here is my code for the frameset:
Code:
<script language="JavaScript">
function showDiv(){
document.getElementById("test1").style.visibility="visible"
}
function hideDiv(){
document.getElementById("test1").style.visibility="hidden"
}
</script>
<div id="test1" style="position:absolute; left:157px; top:54px; width:57px; height:24px; z-index:1; visibility: hidden;">Test1</div>
<table width="760" height="71" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="/sw(new)/testframe/Link1.htm" target="mainFrame">Link1</a> <a href="/sw(new)/testframe/Link2.htm" target="mainFrame">Link2</a></td>
</tr>
</table>
and here is the link1 page with the onload code:
Code:
<BODY onload="parent.topframe.showDiv()" onunload="parent.topframe.hideDiv()">
What am I doing wrong here? I need to somehow lable the onload to know which layer I want to show or hide...right? Because the end result I will have several layers that different pages will hide/show.
Thanks in advance
Bookmarks