Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2002
    Location
    Ipswich
    Posts
    57
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hide menu options when mainframe is a particular page

    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

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Let's say that your navigation in the menuFrame is within a DIV named "nav". In the <HEAD> section of timeout.htm insert this:
    Code:
    <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
    Code:
    <script>
    top.frames['menuFrame'].location.href="otherpage.htm";
    </script>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •