Recent Questions
Q: How to open a popup after clicking on a menu item in dhtml image menu.
A: You can write your menuItems in the following way:
["Home","javascript:window.open('http://deluxe-menu.com');window.focus;", "", "", "Home", "", "", "", "", "", "", ],Q: I'm trying to put the tree menu within a table per the instructions below, but the menu is not going in the menu but actually going on top of it!
A: Please, check that you don't use absolute position for the Tree Menu.
var tabsolute = 0;
Q: How do I go about using the menu javascripts feature and javascript popup on the same HTML page? I'm getting a Java Error.
A: 1) Notice that you should call dmWorkPath parameter and dmenu.js file only once on yourhtml page.
2) When you have several menus on the same page they have different menuInd (0,1,2,3...)
For example you have:
<script type="text/javascript" src="data.js"></script> //standard menu menuInd=0
...
<script type="text/javascript" src="popup-data.js"></script> //popup menu menuInd=1
You should call your popup in the following way:
<img src="mypic.gif" onClick="return dm_popup(1, 1000, event);">
or
<script type="text/javascript" src="popup-data.js"> </script> //popup menu menuInd=0
...
<script type="text/javascript" src="data.js"></script> //standard menu menuInd=1
You should call your popup in the following way:
<img src="mypic.gif" onClick="return dm_popup(0, 1000, event);">
Q: I would like to make the main bar for the menu javascripts more consistent in the spacing.
A: Try to set exact width for each top menu item using Individual Styles:
var itemStyles = [
["itemWidth=131px"], //style0
];
var menuItems = [
["home","", "", "", "", "", "0", "", "", "", "", ], //style0
["artist index","", "", "", "", "", "0", "", "", "", "", ], //style0
["the gallery","", "", "", "", "", "0", "", "", "", "", ], //style0
];