...

View Full Version : Hide menu options when mainframe is a particular page



pthompson2002
08-07-2002, 01:03 PM
I want to hide the menu options on the menu frame of a three frame page when the main frame is timeout.htm. the menu page is an ASP. I tried an javascript if statement but it didn't work and I have also tried using various ASP methods but I can't get it to work, it isn't even rendering the page in the browser!

any ideas?

Pete

beetle
08-07-2002, 02:35 PM
Let's say that your navigation in the menuFrame is within a DIV named "nav". In the <HEAD> section of timeout.htm insert this:
<script>
top.frames['menuFrame'].document.getElementById('nav').style.display = 'none'; // I think this is right
</script> Or, you could just change the SRC of that frame
<script>
top.frames['menuFrame'].location.href="otherpage.htm";
</script>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum