dweeble
Technical User
- Jan 3, 2006
- 6
Hello,
I have this script and on loading the iFrame by default is open, its got me. What am I missing to make the iFrame closed by default on open ? Thanks for any help..
Mike
--------------------------------------------------------
<html>
<head>
<script language="JavaScript">
function styleMenu(currMenu) {
thisMenu = document.getElementById(currMenu)
if (thisMenu.style.display=="")
{thisMenu.style.display="none";}
else
{thisMenu.style.display="";
source=document.getElementById('select_menu').options[document.getElementById('select_menu').selectedIndex];
document.getElementById('style_frame').src = source.value;}
}
</script>
</head>
<body topmargin="0" leftmargin="0" >
<br>
<SELECT id="select_menu" style="visibility:hidden">
<option value="</SELECT>
<br>
<input type="button" id="toggle" value="Search" onclick="styleMenu('style_frame');">
<IFRAME id="style_frame" name="style_frame" width="100%" scrolling="yes" height="100%%"></IFRAME>
<br> </body></html>
---------------------------------------------------
I have this script and on loading the iFrame by default is open, its got me. What am I missing to make the iFrame closed by default on open ? Thanks for any help..
Mike
--------------------------------------------------------
<html>
<head>
<script language="JavaScript">
function styleMenu(currMenu) {
thisMenu = document.getElementById(currMenu)
if (thisMenu.style.display=="")
{thisMenu.style.display="none";}
else
{thisMenu.style.display="";
source=document.getElementById('select_menu').options[document.getElementById('select_menu').selectedIndex];
document.getElementById('style_frame').src = source.value;}
}
</script>
</head>
<body topmargin="0" leftmargin="0" >
<br>
<SELECT id="select_menu" style="visibility:hidden">
<option value="</SELECT>
<br>
<input type="button" id="toggle" value="Search" onclick="styleMenu('style_frame');">
<IFRAME id="style_frame" name="style_frame" width="100%" scrolling="yes" height="100%%"></IFRAME>
<br> </body></html>
---------------------------------------------------