The basic requirement to get a tree menu of your site by using JAVA script is some graphics in each and every case. This graphic includes the branches and icons of the menu which you can see. The picture you are using must have identical size. the scripting for the same can be done as mentioned below.
HTML Code:
<ul> <a href="index.htm"> home </ a>
<li> <a href="page1.htm"> Page 1 </ a> </ li>
<li> <a href="page2.htm"> Page 2 </ a> </ li>
<li> <a href="page3.htm"> Page 3 </ a> </ li>
<li> <a href="dir1.htm"> Directory Sub 1 </ a>
<ul>
<li> <a href="page1_1"> Page Sub1_1 </ a> </ li>
<li> <a href="page1_2"> Page Sub1_2 </ a> </ li>
<li> <a href="page1_3"> Page Sub1_3 </ a> </ li>
</ ul>
</ li>
</ ul>
Bookmarks