Recent Questions
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", "", "", "", ],
Q: We are evaluating your product Deluxe Tree-menu.
We want that when user clicks an item, then load other page. This other page also conatains the tree menu. But, we are looking for how we have to do for the previously clicked menu items in java (in the previous page) remains highlighted for inform to user what is his current page/selection.
We know toggleMode feature, but after the second page loads, the clicked item does not remain higlighted.
It is possible to achieve this behavior with your product???
A: You should use API functions in that case
function dtreet_ext_expandItem (itemID, expand)
function dtreet_ext_setPressedItem (menuInd, itemID)
See more info about API functions:
http://deluxe-tree.com/functions-info.html
See the samples:
http://deluxe-tree.com/dynamic-drop-down-menu-sample.html
and
http://deluxe-tree.com/highlight-selected-menu-item-sample.html
Q: Does deluxe menu need Java Virtual Machine installed on the computer that is trying to view the web site with a deluxe menu on it?
A: This menu doesn't require any external plug-ins to be installed.
If you can't see the menu in all browsers you should change security browser settings to allow Javascript on pages you load.
When your security browser settings doesn't allow Javascript onpages you load you can't see a dynamic page content.
Q: Can you please write me, can I have the active menu button in the javascript menu generator different color display.
A: The menu has only two states normal and mouseover.
Try to do the following things:
- delete var pressedItem=1; parameter from your data file
- set correct parameter on each page before you call data file, forexample:
<noscript><a href="http://deluxe-menu.com">Javascript Menu by Deluxe-Menu.com</a></noscript>
<script type="text/javascript"> var dmWorkPath = "menudir/";</script>
<script type="text/javascript" src="menudir/dmenu.js"></script>
<script type="text/javascript"> var pressedItem=3;</script>
...
<script type="text/javascript" src="menudir/data.js"></script>
You can also set a pressed item using Javascript API:
function dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion)
Sets a current pressed item.
menuInd - index of a menu on a page, >= 0.
submenuInd - index of a submenu, >= 0.
itemInd - index of an item, >=0.
recursion = true/false - highlight parent items.
But notice, to use dm_ext_setPressedItem() you should know ID of selected item and subitem.
You can't get this ID after you reload your page. That is why you should write your own code on PHP.