Recent Questions
Q: I am working on creating a new navigation menu with Tree menu.
I wonder how I can reduce the width of the menu?
A: You should set this parameter
var tmenuWidth = "275px";
Try to set also the following parameters:
var tlevelDX = 0;
var tnoWrap=0;
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: So, as you can see, I use "_self" in order to make the URL open in same window when left-clicked. If I set it to empty it opens in new window (is that correct behaviour (I thought we should use _blank to get that effect).
A: In the menuItems you can set target parameter for each itemindividually.
The following parameter:
var itemTarget="_blank";
sets target for all items, so if you haven't specified target for theitem
["Arbeidsplaner","cp_workplan.php",,,,"","0","0"],
the target for this item will be "_blank".
Q: I'm interesting in dhtml menue ability to display a different color word on a menu item when the site is on that selected page
A: 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.