Recent Questions
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: I would like to know does deluxe menu support Unicode characters? I have enter some Chinese texts through deluxe tuner and I can preview those Chinese text in deluxe tuner preview panel. I have chose "use utf8 encode"already. However after I saved the .js file, the js file encode become ANSI and those Chinese texts in the js file become ?????. Can deluxe tuner autosave the file to UTF8 encode?
A: Please, check that you've set "Tools/Use utf8 encode".
When you save your data file in UTF8 you should use the same encoding on our html page.
So you should write:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
If you don't want to use UTF-8 encode on your page you should turn off"Tools/Use utf8 encode" property, save your data file and manuallychange your letters in any text editor.
Q: I follow the installation instructions, but I’m getting the error "dmObjectsCheck is undefined" in my javascript popup menu.
What is it wrong?
A: You should open your data file in Deluxe Tuner and save it.
Check also that you've set the following parameter:
var shadowLen="0";
Q: I have published on a test page you can see herebelow a test with the javascript pull down menu.
With IE, it works fine, the menu is displayed over the flash animation.
With Firefox, the flash animation disappears and comes back if I mouve the mouse out of the menu.
I have read the FAQs, but I can not see any document on this. Can you help me in understanding and solving the problem ?
A: You should add opaque parameters to OBJECT and EMBED tags.
You can find more info on this issue here:
http://www.deluxe-menu.com/objects-overlapping-sample.html