Recent Questions
Q: How change the color of the link in the dhtml vertical menu if the link is already visited.
A: Deluxe Menu has only two states normal and mouseover,
butyou can highlight menu items in two ways:
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.
You can find more info here:
http://www.deluxe-menu.com/highlighted-items-sample.html
Q: Why don't any of the effects work in Firefox? I have built several different types of menus and they don't work the same in firefox as they do in IE. Is there a way to fix this? i.e. adding any html code or anything?
A: Yes, it is really so. Firefox supports only transparency of the menu.
Visual effects work in IE only. other browsers don't support them.
See more info:
http://www.deluxe-menu.com/filters-and-effects-sample.html
Q: Need the pricing text in the second-level css menu to be individually styled - ie needs to have colour change and float/align left.
A: You can use any html code for your menu items, so you can try to writeyour menuItems in the following way:
["|Company Registration - <span style='color: #AAA'> $537,50</span>","#", "", "", "", "", "", "", "", "", ],Q: If you look at our site in IE (PC) the deluxemenu looks great justified left w/ our logo justified right. When you look at it in Safari (Mac) the dhtml menu dropdown is stretched across the entire width of the page and our logo is no longer in view (yuk!).
A: Try to set exact width for the menu in 'px':
var menuWidth="300px";