Recent Questions
Q: Is it possible to insert an item at the top of the submenu in the popup menu?
A: To insert item in the specific position you should use thefollowing function:
function dm_ext_addItemPos (menuInd, submenuInd, iParams, Pos)Q: I have been mostly creating my menus by starting with a template file that has the features I need, and then modifying that file by hand (as opposed to using the Tuner program). In this case I am using data-vista-01.js.
When I load my html file that has references to the necessary resources (e.g. .js, gif, etc) in a directory that has the Images folder and Menu folder copied directly from the installed Deluxe Menu program directories, I get what I want.
This is perfect. But I think to myself, surely I don't need all the .js files from the Menu directory, nor do I need all the .gif files from the Images directory, so I started deleting those files one at a time, until I got to the point where Images contained only the Vista1 folder + the empty.gif file, and the Menu folder contained only dmenu.js. My menu now not working.
I'm guessing that some graphic files need to draw the top-level menu bar are missing. But which ones?
So my question is, what files do I really need? Is this something the documentation describes, and if so where?
I hope I don't have to include the full contents of the Menu and Images folder, as they are quite large.
A: Unfortunately, you should add all need images manually.
We'll try to correct it soon.
You can open your data.js file and see what images you're using in themenu and copy tese images into your folder.
You should also change the following parameter:
var pathPrefix_img="";
There is no need to use all engine files for the menu.
Description of files you can find here:
http://deluxe-menu.com/description-of-files-info.html
Q: I am using deluxe-menu for the third time to create a school web site. It has worked fine on the previous two sites, but I am making a horizontal menu this time instead of a vertical menu. The menu won't align itself correctly in Firefox. I read the post in your FAQ and I set the align tag in the TD element and also the size attribute, but that didn't work.
Could you give me some suggestions. It looks fine ie IE, but not Firefox.
A: Try to specify exact value for menu width.
For example:
var menuWidth="800px";
It's necessary to specify exact value for Mozilla browsers. It helpsto position menus correctly.
Q: I want to be able to pull information into dynamic drop down menu from the mysql database.
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) 2008, 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