Need some quick javascript help...

Discussion in 'Web Design and Development' started by JustGretchen, Feb 9, 2009.

  1. JustGretchen macrumors 6502

    Joined:
    Dec 2, 2008
    #1
    http://javascript.internet.com/navig...ding-menu.html

    I am trying to implement that on a page that I have. I found the solution to the first problem I was having by searching the forum here http://www.webdeveloper.com/forum/sh...expanding+menu

    which was to keep the menu expanded as I click on the different main and sub parts of the menu and not have it collapse each time I go to a different page while using the nav.

    So I implemented/swapped that Javascript into the code.

    But my problem now is that i put links into the MAIN menu items so the code looks like this for the menu:
    Code:
    <ul id="menu">
      <li><a href="landsite.html">Land Development & Site Design</a>
        <ol>
     	  <li><a href="Landsite1.html">Tom Brown Auto Body</a></li>
          <li><a href="Landsite2.html">St. Nicholas</a></li>
          <li><a href="Landsite3.html">York Springs UNited Methodist</a></li>
        </ol>
      </li>
      <li><a href="municipal.html">Municipal Engineering</a>
        <ol>
          <li><a href="#">Sub Item 2.1</a></li>
          <li><a href="#">Sub Item 2.2</a></li>
          <li><a href="#">Sub Item 2.3</a></li>
        </ol>
      </li>
    But now nothing expands at all. Any help or ideas?

    Thanks!
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    The links you provided aren't working. The ... in them is what's wrong. Not sure how that happened.
     
  3. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #4
    It's possible you deleted a little too much or not enough when you modified the code. Can you post the current code you're using? I think I implemented something similar before, minus the remembering what was last selected.
     

Share This Page