Recent Questions
Q: Can data be loaded dynamically in the free drop down menu? For example, can you load the child of a node once the node is clicked on.
A: You can use AJAX like technology.
http://deluxe-menu.com/ajax-technology-menu-sample.html
You may generate a menu from a database or XML using any server-side script, e.g., PHP, ASP, VB, etc.However, these scripts don't work inside of Javascript .js files, so, you should move parameters of a menu from a .js file into an html-page, e.g.:
<!-- Deluxe Menu -->
<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" language="JavaScript1.2">
// and describe parameters of a menu
var parameter1=value1;
var parameter2=value2;
etc.
var menuItems = [
// here you generate items using server-side scripts (php, asp, vb, etc.)
];
</script>
The example of the menu working with PHP/MYSQL you can find here:
http://deluxe-menu.com/rq-loading-bar-MySQL-support.htmlQ: Looking at the tab menu code below, am I right in guessing what the first 6 parameters are, and can you tell me what the last 3 are forplease?
var bmenuItems = [
["-","", "", "", "", "", "", "", "", ],
["Title","...link.asp", "iconNormal", "iconMouseOver","iconSelected", "tootip", "?", "?", "?", ],
["-","", "", "", "", "", "", "", "", ],
];
A: var bmenuItems = [
[item_text, object_to_show, normal_icon, mouseover_icon, selected_icon, tooltip, item_style],
[item_text, object_to_show, normal_icon, mouseover_icon, selected_icon, tooltip, item_style],
...
];
so it's a item_style, the last two are reserved and not used.
http://deluxe-tabs.com/product-info/?individual-item-styles
Q: A question: How do I make it show all the drop down dhtml menu items rather than having them pop up?
eg:
- Item 1
- sub item 1
- sub item 2
- sub item 3
A: You cannot expand items by default in Deluxe Menu. You should hoverover menu to open submenus.
You can do it using Deluxe Tree.
To expand specific items in Deluxe Tree you should add + sign beforeitem's text or set the following parameter to expand all drop down dhtml items bydefault:
var texpanded = 1;
Q: I am using JavaScript Deluxe Menu v3.1 and have some problem with the doctype declaration. If I use the declaration:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
the menuBackImage and itemBackImage images do not display properly. Check with and without doctype declaration. Is there a known fix for this?
A: You should specify units in "px" for the javascript menu object.
var itemPadding="15px 10px 0px 20px";
var menuStyles = [
["smColumns=2","itemPadding=25px 10px 10px 10px"],
["itemPadding=25px 10px 10px 20px"],
["menuBackImage=img/nahbp_1.gif","itemPadding=25px 10px 10px 20px"],
];