Results 1 to 2 of 2

Thread: Simple Tree Menu Help

  1. #1
    Join Date
    Sep 2007
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Simple Tree Menu Help

    1) Script Title: Help with SimpleTree persistant

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

    3) Describe problem: I am new to javascript and DHTML. I have followed your procedure and implemented your simple tree menu. Every thing works fine and my probelm over here is that I want a certain part of the tree to be opened by default. I looked into .js file but couldn't understand anything. Please help me out.

    Thanks,
    Sowjanya

  2. #2
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    From the documentation here:

    Changing the contract/expand state of a tree menu

    By default when you transform a list into tree menu, all sublists are contracted until clicked on. You can set a particular sublist (and all of its parent sublists, if any) to be expanded by default by inserting the attribute:

    Code:
        <li>Folder 1.1
        <ul rel="open">
        <li>Sub Item 1.1.1</li>
        <li>Sub Item 1.1.2</li>
        <li>Folder 1.1.1
          <ul>
          <li>Sub item 1.1.1.1</li>
          <li>Sub item 1.1.1.2</li>
          <li>Sub item 1.1.1.3</li>
          <li>Sub item 1.1.1.4</li>
          </ul>
        </li>
        </ul>
    inside the UL element you wish to be expanded automatically when the page loads.

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
  •