Recent Questions
Q: I am trying to create a multicolumn dhtml navigation menu and nothing appears when I upload it to my server. I am attaching my menu called menu.js that I have created and placed in a folder called menudir.
Can you please advise, thank you.
A: You can find more info here:
http://www.deluxe-menu.com/highlighted-items-sample.html
Deluxe 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">dhtml navigation 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 have the following problem. I've set target parameter to "_self".
But my html files still opens in a new window.
A: Please, check the following parameters:
var itemTarget="_self"; //default target
You can set target parameter for each item.
See menuItems parameter:
var menuItems =
[
["Home","testlink.html","icon.gif","iconover.gif","Home Tip",target,"1"],
["|Our Products","testlink.html","icon1.gif","icon2.gif","Our Products Tip","_self",,"0"],
];
Try that.
Q: I am having an issue using Deluxe Menu with Netscape 7 and cross-frame support across domains. Everything works fine in IE however when I mouse over the top menus they do not adjust the size of the frame when looking at a page from another domain with Netscape. I have checked, and the submenus do appear when I increase the size of the top frame. How do I get the menu to function the same in Netscape or have it function like it does when it’s all in the same domain?
A: The menu will work correctly in the cross-frame mode if you load pages into the sub frame from the same domain.
If you load pages from another domain submenus won't be shown in the subframe - they will be shown in the frame with the top-menu.
It's caused by a security policy of browsers - a script can't modify a content of pages from another domain.
More info about cross-frame mode you can find here:
http://deluxe-menu.com/cross-frame-mode-sample.html
Q: It's me again, I got the buttons to show... Now, looking to get the floating feature to work in the java script menu.
A: To enable floating feature you should set the following parameter:
var floatable=1;
Check also that you have dmenu_add.js file in the same folder withdmenu.js file.