Results 1 to 6 of 6

Thread: Menu Code

  1. #1
    Silver Lounger
    Join Date
    Dec 2000
    Location
    Northampton, Northamptonshire, England
    Posts
    1,951
    Thanks
    2
    Thanked 1 Time in 1 Post

    Menu Code

    This is code used for a menu on our Parish Council Website at
    www.dustonparish.org.uk
    However When you click on Parish Council in the left hand menu you get a drop down of other links as you click on each link the drop down stay visible (Ignore Duston Sports an Leisure) but when you click on St Lukes School the drop down disappears which do not want it to. I would very much appreciate any help on this.
    Thanks in advance.
    Braddy

    <td width="150"><div class="duston_menu">
    <h5>► <a href="index.html">Home</a></h5>
    <h5>► <a href="javascript:showMenu('menu1');">Parish Council</a></h5>
    <ul id="menu1">
    <li><a href="council_function.html">Function of the council</a></li>
    <li><a href="parish_councillors.html">Parish Councillors</a></li>
    <li><a href="meetings_2009.html">Meetings for 2009</a></li>
    <li><a href="agenda.html">Agenda for next full council meeting</a></li>
    <li><a href="minutes.html">Draft minutes of last full council meeting</a></li>
    <li><a href="archive.html">Archive of full council minutes</a></li>
    <li><a href="planning.html">Current planning applications</a></li>
    <li><a href="st_lukes_bp_summary.html">St. Lukes School</a></li>
    <li><a href="duston_sports_centre.html">Duston Sports and Leisure Centre</a></li>

    </ul>
    If you are a fool at forty, you will always be a fool

  2. #2
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,172
    Thanks
    47
    Thanked 980 Times in 910 Posts
    The menu is consistent so I think the difference is in the code for St Lukes. See what differs between it and planning.

    cheers, Paul

  3. #3
    Silver Lounger
    Join Date
    Dec 2000
    Location
    Northampton, Northamptonshire, England
    Posts
    1,951
    Thanks
    2
    Thanked 1 Time in 1 Post
    Thanks Paul

    But I'm not sure where I should be looking
    Regards
    Braddy
    If you are a fool at forty, you will always be a fool

  4. #4
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,172
    Thanks
    47
    Thanked 980 Times in 910 Posts
    This page has a nice section on showing and hiding menus.
    http://www.milonic.com/mfa/2004-Dece...avascript.html

    cheers, Paul

  5. #5
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts
    The St. Luke's page is missing one critical line that the other pages have. This displays the menu:

    Code:
    <script type="text/javascript">document.getElementById('menu1').style.display = 'block';</script>
    If you search for 'block' in one of the other pages, you can see where it has been placed in the code.

  6. #6
    Silver Lounger
    Join Date
    Dec 2000
    Location
    Northampton, Northamptonshire, England
    Posts
    1,951
    Thanks
    2
    Thanked 1 Time in 1 Post
    Hi jscher 2000

    I can't tell you how grateful I am thank you, It's now working as required

    Braddy
    If you are a fool at forty, you will always be a fool

Posting Permissions

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