Recent Questions Tree Edit Javascript
Q: I have set up the dhtml menu javascript at this site. I have chosen to use the transitional filter from IE6. The main menus and sub menus work fine in IE but in Firefox the sub menus do not appear at all. Is their a fix for this. I realize that firefox does not support IE transitions but Ithought the sub menus would appear when the main item is clicked on. that hs not happened. Go to above URL and vie in both IE and Firefox and you will see what I mean.
A: You couldn't see submenus in FF because you had
var transparency="";
You should set your parameters in the following way:
var transparency="100";
var itemBackColor=["#072450",""];
Q: I use the apy menu inside a table cell and it has 6 sub menus. The table width is 600 so I would like to have each sub menu with width 100 and each item with the same width. I use menuWidth=100 and itemWidth=100 but it doesn't work, each menu has a different size depending on the label.
Also, each sub menu label can fit in less than 100 but I really want the width to be 100 so it looks consistant across the full menu.
What am I doing wrong ?
A: You should use individual item styles. For example:
var itemStyles = [
["itemWidth=100px"],
];
["DHTML
Menus","", "", "", , , "0", , , , , ],
...
["Apycom
products","", "", "", , , "0", , , , , ],
...
["Contacts","http://www.apycom.com/contact.html", "", "", , , "0", , , , , ],
See the attached example.
Q: Will tab titles ever automatically wrap?
Is there a way to force a wrap of a tab title in a tab menu java?
A: No, unfortunately, tab menu cannot wrap item text automatically.
But you can use
tag within item text, for example
var bmenuItems = [
["Item 1 text <br> text text text <br> text text text ","", "", "", "", "", "", "", "", ],
["Item 2","", "", "", "", "", "", "", "", ],
["Item 3","", "", "", "", "", "", "", "", ],
];
Q: If you take a look at the upper menu, I have "|" separating all of the various menu items. How can I do this with JavaScript Tree Menu?
I don't want to resort to using messages and would like to use the "|" character if at all possible.
A: You can paste a separator.
Please, see the following parameters:
//------- Separators -------
//--- Separators
var separatorImage="";
var separatorWidth="5";
var separatorHeight="100%";
var separatorAlignment="right";
var separatorVImage="images/public/separator.gif";
var separatorVWidth="3";
var separatorVHeight="100%";
var separatorPadding="";
You should set a separator in the menuItems, for example:
var menuItems = [
["Home","index.cfm", , , , , , , , ],
["-"],
["About Us","about.cfm", , , , , , , , ],
];