Recent Questions
Q: If var bselectedSmItem= anything other than 0, the dropdown menu maken links do not work and I get the following error:
A: You should set bselectedSmItem parameter in tabMode=1 only. When youhave subitems.
I'm also sending you the fixed version of dtabs.js file. Please, useit.
Q: Can you please write me, can I have the active menu button in the javascript menu generator different color display.
A: The menu has only two states normal and mouseover.
Try to do the following things:
- delete var pressedItem=1; parameter from your data file
- set correct parameter on each page before you call data file, forexample:
<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"> var pressedItem=3;</script>
...
<script type="text/javascript" src="menudir/data.js"></script>
You can also 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.
Q: Is there anyway to embed particular fonts that I want to use with the javascript menu component?
A: See, for example you want to use HelveticaNeue Condensed font.
If there will be no HelveticaNeue Condensed font on the user machinethe font won't be shown correctly.
You can find another font similar to your font and write it through a comma.
You should choose the font among the following fonts:
Arial
Tahoma
Times New Roman
Trebuchet MS
Verdana
These fonts are installed on the most of windows computers.
Or you can create images with text and use it for the top items.
Q: I'd like to re order the position of the drop down menu's items (by example) the cities.
A-city
C-city
D-city
B-city
E-city etc.....
B-city had to come under A-city, how can we do that?
Thank you
A: I'm not sure I understand where you would like to change the position.In Deluxe Tuner or dynamically on your html page.
To move items in Deluxe Tuner select items you want and use a mouse drag'n'drop method.
See the attached screenshot. Click on the item you want to move.Move your mouse in the correct place (holding left mouse button).Wait till you'll have gray line in the place where you want to insertthe item and release mouse button.
To dynamically change your items you can use the following API function:function dm_ext_changeItem (menuInd, submenuInd, itemInd, iParams)
See more info:
http://deluxe-menu.com/functions-info.html