View Full Version : Simple Tree Menu Help

09-10-2007, 09:27 PM
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.


09-10-2007, 11:22 PM
From the documentation here (http://www.dynamicdrive.com/dynamicindex1/navigate1.htm):

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:

<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
<li>Sub item</li>
<li>Sub item</li>
<li>Sub item</li>
<li>Sub item</li>

inside the UL element you wish to be expanded automatically when the page loads.