Recent Questions Menu Tree Onmouseover
Q: Is there a way to center floatable menus horizontally on a page?
I used to use absolutePos=0, and all of my menus were centered ok, but when I tried floatable=1 I found that I had to change toabsolutePos=1 to get the menu to float, and this messed up my centering. Since I have multiple menus of different widths, I'd rather not have to hard-code the menu width, but please let me know if there's a better way.
A: Notice, when you use floatable menu you can't use relative menu position.
So, if you use
var absolutePos = 0;
and to center the menu you use <p> or <div> with the center alignment your menu won't float.
To center your floatable menu you should set absolute coordinates.
Q: If you look at our site in IE (PC) the deluxemenu looks great justified left w/ our logo justified right. When you look at it in Safari (Mac) the dhtml menu dropdown is stretched across the entire width of the page and our logo is no longer in view (yuk!).
A: Try to set exact width for the menu in 'px':
var menuWidth="300px";
Q: We need Asian fonts to be displayed on the menu. Is there any way that we can really make it happen?
The constraint is we have to display the drop down in Cross Frame and Cross Domain environment.
Your inputs will be really appreciated.
A: You can use any font in your menu.
You should install the font on your computer.
You're able to use any characters for JavaScript Tree Menu in the same way asyou use them for standard html page.
The only issue is that submenus can be shown in incorrect positionwhen you're using dir=rtl for your page.
var dmRTL = 0;
Set this parameter to 1 if you're using right-to-left direction of html page <HTML dir=rtl>.Use also var smViewType = 2;for right-to-left languages.
Q: Can I ask a technical question? I am using the menu in a frameset, and I would like for the drop down menu selected branch to sty highlighted after the user moves the mouse to another window (where the menu brings up a new page), just so the user knows where he/she is. Is that possible?
A: But if you open links in the another frame (window) the initial frame with your menu isnot reloaded, so the clicked item will be highlighted.
You should set the following parameters:
var ttoggleMode=1;
var tpressedFontColor="#AAAAAA";
You can also set the following parameter to save menu state:
var tsaveState=1;
var tsavePrefix="menu1";
If you install the menu without frames. On your pages you should call the following function/functions to expand/highlight items, for example:
<script>
dtreet_ext_expandItem (dtreet_ext_getItemIDByIndex (0, 0), 1);
dtreet_ext_setPressedItem (0, dtreet_ext_getItemIDByIndex (0, 1));
</script>
See more info about API functions here:
http://www.deluxe-tree.com/functions-info.html
Example:
http://deluxe-tree.com/highlight-selected-menu-item-sample.html