Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:22

How would you create a treemenu wih the listmenu setup?


Poster: nwilcox
Dated: Wednesday February 13 2008 - 20:15:19 GMT

How would you create a treemenu wiht the listmenu setup?

I'm trying this right now and I'm a little lost on how to go about setting the "type=header"

would it be like this:

Code:
<ul>
<li>test parent 1
<li type="tree">test parent 2
<ul>
<li>test sub 1</li>
<li>test sub 2</li>
</ul>
</ul>

Re: How would you create a treemenu wih the listmenu setup?


Poster: Ruth
Dated: Thursday February 14 2008 - 13:39:58 GMT

Hi,

I posted this in the other topic before I noticed this one, so I reposted here, also.

1. go to the extras/listbased_menu folder in the menu download and open the index.html page and save it under some other name [now you'll have the original listbased page if y ou need it.
2. download and save the treemenu.js file to that listbased extras folder.
3. add the following things to the information on the page in the script tags that appear after the ul menus. The top 3 go right after the _subOffsetLeft=-2, and before the menuStyle section, and the other items I go into the menuStyle section to set a width and the type of menu it is

Code:
AllMargin=0;
treeOffset=0;
singleMasterMenu=true;

itemwidth=240;
type="tree";


I didn't add anything like the clicksubimage, onsubimage, clickcolor, or clickbgcolor, or clickbgimage if you're using any of those. But they can be added to the style. Just remember that since you are doing a 'listbased' menu and don't have a file with the aI strings, you cannot add things to each 'item' to make changes to it, like different image for items, etc.

I will be glad to help you set something up if you have images and such.

DISCLAIMER: The treemenu is NOT supported. It has not been released, and I don't believe that it [this particular program] is being developed now, though there is one in development that has not even reach beta stage yet. The treemenu.js module has been left in the module section because many people use the collapse menu without any kind of fancy setups, just a simple menu that they have used with absolute position [i.e. top=; left= positioning] and so Andy has kept the module up to date for those clients. If you are trying to position this menu relatively, the only way you can do that is to place the table AFTER the lists themselves since the menu must have the lists in order to build itself.

Hope this helps. If you need more help, I'd actually have to have the page and stuff with which to work and I'm going to be gone this afternoon and probably most of tomorrow.
Ruth