Recent Questions Tree Menu Checkbox
Q: We are an enterprise license holder and have recently purchased JavaScript Tree Menu and are transitioning to it smoothly except for one minor annoyance; the first dhtml div menu item's submenu always has a gap between the browser’s left side as shown below. This happens for Internet Explorer 6, 7 and Firefox 2 and 3.04b.
If I move the menubar to the right about ten pixels, the submenu's left side will line up with the word "Search" as it should. Every other submenu on the dhtml div menu appears directly beneath its menubar item except for the very first one on the left. I’ve tried using a few of the example configurations but they all experience the same behavior.
The installation is in a multi-framed environment.
A: You should change dmenu.js file. Open it in any text editor and find:
space=15;
Change it to:
space=0;
Q: How does an item on the dhtml navigation menus connect to pages?
Does it take the page's name automatically?
If I add a page, will the menu item show the new page?
If I remove a page, will the menu remove the item?
A: > how does an item on the menu connect to pages?
You should create menu items in the Deluxe Tuner and specify link and target for each item, for example:
var menuItems = [
["Upcoming Trainings","http://domain.org/pub/upcoming-trainings", "", "", "", "_self", "", "", "", "", "", ],
["Conferences & Workshops","upcoming-workshops.html", "", "", "", "_blank", "", "", "", "", "", ],
["Continuing Ed","ceu.html", "", "", "", "main", "", "", "", "", "", ],
];
> does it take the page's name automatically?
> if I add a page, will the menu item show the new page?
> If I remove a page, will the menu remove the item?
No, you should do it manually in Deluxe Tuner (or any text editor).
Q: Does your menu html javascript support Arabic language fonts?
A: Actually you can use any letters in the menu.
Please, check that you've set "Tools/Use utf8 encode".
When you save your data file in UTF8 you should use the same encoding on our html page.
So you should write:
<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.
Q: Can I call javascript within the drop menu javascript?
A: Yes, it is possible.
Actually you can use your own Javascript code instead standard links and html code inside item text. For example:
var menuItems = [
["text", "javascript:your_code_here"]
];
or
var menuitems = [
["<div onClick='urlSubstitution(\'transco/sheet.asp?stype=1\')'>Table of Contents</div>", ""]
];
s