Recent Questions Tree Javascript Cgi Script
Q: How can I use Danish characters in my menu using javascript? In normal html you would use something like this:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
What should I do in JavaScript Tree Menu?
A: You should turn on "Tools/Use utf8 encode" property.In that case your data file will be saved in UTF-8 encode. So, youshould set UTF-8 encode on your page too
<meta http-equiv="Content-Type" content="text/html"charset="UTF-8">
If you don't want to use UTF-8 encode on your page you should turn off"Tools/Use utf8 encode" property, save your data file and manuallychange your letters in any text editor.
You can also replace your letters with special sets, for example
É - Capital E, acute accent
var menuItems = [
["É....","testlink.html", "", "", "", "", "", "", "", ],
Q: I am putting your deluxe menu on our pages but if I do not put the menu on top, then it the sub menus appear on opposite direction (from bottom to top.) So instead of dropping down, they drop up.
We do not want this to happen. Can you please let me know how to resolve this issue?
Mouseover menu submenu drops up unless you scroll down or put the menu on top.
A: See if your submenu has a big height and there is no enough room under the menu to showthe whole submenu the submenu will be shown above the menu (if there is enough space toshow the whole submenu).
You can set exact height for the submenus, so they will go in the place under the menu.
Q: I would like, that not only the text is represented differently when dhtml nav menu item is expanded, also the Icon separates before it at the side where I am.
iconarrs.gif is not right
iconarrs_aktiv.gif is right
How do I solve that?
A: You should set arrow for expanded state
["||Seite 1","seite1.htm", "deluxe-tree.files/iconarrs.gif", "", "deluxe-tree.files/iconarrs_aktiv.gif", "Seite 1", "_self", "", "", "", ],
["||Seite 2","seite2.htm", "deluxe-tree.files/iconarrs.gif", "", "deluxe-tree.files/iconarrs_aktiv.gif", "Seite2", "_self", "", "", "", ],
["||Seite 3","seite3.htm", "deluxe-tree.files/iconarrs.gif", "", "deluxe-tree.files/iconarrs_aktiv.gif", "Seite3", "_self", "", "", "", ],
Q: How woud I make all the sub-menu’s height and text smaller in the css dhtml menu?
A: You can create Individual Item Style and assign it to each item insubmenu.
For example:
var itemStyles = [
["itemHeight=10px","fontStyle=normal 9px Trebuchet MS, Tahoma"],
];
and assign it to each item in submenu:
["|Item 7","", "", "", "", "", "0", "", "", ],
["|Item 8","", "", "", "", "", "0", "", "", ],
you can also use standard <br> tags.
["|Home text<br>text","testlink.htm", "default.files/icon1_s.gif", "default.files/icon1_so.gif", "", "Home Page Tip", "", "", "", ],