Recent Questions
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 can’t highlight the selected menu item of the current page in the javascript flyout menu?
A: Please, check the following parameter
var pressedItem=-2;
This parameter sets an index of an item that will be highlighted by default.
-2 - the toggle mode is disabled;
-1 - the toggle mode is enabled, but no items highlighted by default;
0,1,2,3,... - index of highlighted item in a top-menu.
The menu has only two states normal and mouseover. We'll try to add the pressed state in the future.
You can 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.
You can also set the correct:
var pressedItem=1;
parameter on each html page.
Q: I need the sub menu to be vertical with the text on top of each other instead of horizontal way as as I have now on my website.
I have tried to change the smWidth & smHeight in the Dimension category but it shows no changes.
A: Please, see menu parameters.
You should set this parameter:
var smOrientation=0;
Q: I really want the actual dhtml menu bars to be SE Friendly. Is this possible?
A: You should generate search engine friendly code and install it on yourpage.
Deluxe Menu is a search engine friendly menu since v1.12.
To create a search engine friendly menu you should add additional html code within your html page:
<div id="dmlinks">
<a href="menu_link1">menu_item_text1</a>
<a href="menu_link2">menu_item_text2</a>
...etc.
</div>
To generate such a code use Deluxe Tuner application.
Run Tuner, load your menu and click Tools/Generate SE-friendly Code (F3).
We use such code on our website
http://deluxe-menu.com