Click to See Complete Forum and Search --> : Is it possible?


Tasmanian Devil
05-28-2003, 03:47 PM
Is it possible that a web page has say two frames and you can not tell that there is two frames but from a click of a link that lets say the left frame appeares with links to other pages? I have no clue if possible.
Thanks guys and gals

khalidali63
05-28-2003, 03:51 PM
Use <iframe> to get that doen..its tottally possible with that...or event better just use a div with overflow:auto to emmulate a frame...

Tasmanian Devil
05-28-2003, 03:54 PM
khalidali63~
Could you show me an example of what it would look like, I am VERY new to JS so if you dont mind.
Thanks

khalidali63
05-28-2003, 04:05 PM
the code snippet below should do something like that


<form id="form1" action="" onsubmit="">
<input type="button" value="Show Menu" onclick="document.getElementById('menuFrame').style.visibility='visible';"/>&nbsp;&nbsp;
<input type="button" value="Hide Menu" onclick="document.getElementById('menuFrame').style.visibility='hidden';"/>
</form>
<iframe src="maenupage.html" style="width:20%;height:80%;visibility:hidden;" frameborder="0" name="menuFrame" id="menuFrame"></iframe>