Results 1 to 7 of 7

Thread: Simple tree menu question.

  1. #1
    Join Date
    Jun 2007
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Simple tree menu question.

    1) Script Title: Simple Tree Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/navigate1.htm

    3) Describe problem: I installed and configured the tree menu and everything works fine. The problem is that I am using it for a large list of category items. So when you have all of them expanded, the thing is huge and doesn't look good at all.

    Is it possible to set it up to where you can only expand one item at a time? For example:

    Main 1
    • Sub 1
    • Sub 2
    • Sub 3

    Main 2

    It would originally look like that. Then, when you click on Main 2, it would look like this:

    Main 1
    Main 2
    • Sub 1
    • Sub 2
    • Sub 3


    I really hope this is possible, I need it very much.

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    When you use the ddtreemenu.createTree() function, set the second argument to false:
    Code:
    ddtreemenu.createTree("tree_ID", false);
    - Mike

  3. #3
    Join Date
    Jun 2007
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hmm... that didn't work. Didn't do anything, actually.

    <script type="text/javascript">
    ddtreemenu.createTree("treemenu1", false)
    </script>

    that's what I have

  4. #4
    Join Date
    Jun 2007
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Anyone else, please? I'm sorta on a time limit here

  5. #5
    Join Date
    Jun 2007
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Please... anyone.

  6. #6
    Join Date
    Feb 2007
    Posts
    293
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'm not sure if anyone has done a version of the tree menu so that it will collapse all previous menus when a new one is openned.
    But there are some other menus that do that. The switch menu should work for you
    http://www.dynamicdrive.com/dynamici...switchmenu.htm

  7. #7
    Join Date
    Jun 2007
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you very much, Veronica!

Bookmarks

Posting Permissions

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