Recent Questions
Q: I am conisdering purchasing your menu generator product, however I have a question that is very important to me.
 How can I add a separator to the dhtml menu examples using the dynamic functions? It seems as though the only way to get a separator into the menu is by defining it before hand, but the website I'm building will require me to reload the menus dinamically, and I'm losing the ability to put separators on it. 
 If there's a workaround for it, or if there's a chance that you can give me a prototype function that exposes that functionality, that would be acceptable as well. 
A:  You should add items using the following function:
function dm_ext_addItem (menuInd, submenuInd, iParams)
or
function dm_ext_addItemPos (menuInd, submenuInd, iParams, Pos)
Find more info:
http://deluxe-menu.com/functions-info.html
Set the following parameter:
  var dm_writeAll=1;
So, you should write:
dm_ext_addItem(0, 4,  ["|-", "", "", "", "", "", "", ])Q: Do you have any working examples of a menu generated using .php from a MySQL database? 
 Our website is dynamic from a MySQL db and we already have categories and sub-categories. It would be useful if we could use this with our deluxe menu. 
 I don't know how to set this up, so any assistance would be appreciated. 
A: 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> 
<!-- (c) 2006, http://deluxe-menu.com --> 
<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.html 
 
Q: Is there a way we can add javascript behaviors to the sliding dhtml menu actions?
 For example, is there a way we can add an onClick function to a menu item
 (eg,onClick="return MyFunction( )" ) so that we can catch and process key events? 
A: Unfortunately, you can't assign onmouseover/onClick/onContextMenu event to each item.
 However, you can achieve this by using standard html objects within items, for example:
   var menuitems = [
 ["item text
", ""]
 ];
 You can use your own Javascript code instead standard links. For example:
   var menuItems = [
 ["text", "javascript:your_code_here"]
 ];
 Try that.Q: How ever there is still one major issue that need to be solved before we open to site to the public and occurs when the form used by the 2020 Datashed application to search an item (page listing.asp) is used together with the Delux dropdown menu. 
 When the Delux dropdown menu display their data, it is possible to 'see' the information of the 2020 search form through it. The over all effect is some kind of transparency in the page that is not acceptable. 
 In the attached snapshot is an image of the web page that shows the effect that we want to avoid. 
 This effect only happens on the head area of the 2020 search form that I have marked with a red rectangle. The main body of the form, marked in blue, does not have this transparent effect. 
 I wonder if it is possible eliminate the transparency in javascript menu systems changing the adequate css file that is used in the red area, using the same css code that is applied in the blue area. 
 My solicitude for help is about this issue, could you advice about this matter and pinpoint the css file and instruction than can make this change, or there is another way to make the same result? 
A:  Try to set the following parameter:
  var transparency="100";