Recent Questions
Q: I have to pass dynamic value from the link when the user click the mouseover menu.
A: Actually you can use your own Javascript code instead standard links. For example:
var menuItems = [
["text", "javascript:your_code_here"]
];
or
var menuitems = [
["<div onClick='your_code_here'>item text</div>", ""]
];
Q: I purchased your product yesterday and was quite impressed, but I am having a bit of a problem with my submenuitems. In the general menu properties there is a "Global" var titemHeight = 22; My problem is that I would like my upper level of my free tree menu to have one itemheight and my submenuitems to have a smaller height. Is this possible?
A: In the XP Style
var tXPStyle=1;
the item's height for the top items and submenus will be different.
If you want to use
var tXPStyle=0;
you can set ite's height for the submenus:
var titemHeight=16;
And for other items use the blank icon with the height you want to have for the upperlevel of your menu items.Q: If you click a list drop menu link in the tree that opens a new page, for example, Solutions:By Type:Psuedo Wire , the link, Psuedo Wire, remains highlighted.
If you click a line that targets _self, for example, Solutions: By Type: T1 Extender, the link does not remain highlighted. My web app will need highlighting and all links will target _self. I have to solve this problem soon or else look elsewhere.
A: It is normal behaviour, your list drop menu can save its state within one page only.
You can try to use frames, and open pages in the content frame. Also you can use aserver-side script (php, asp, vb, etc.) to generate html pages fromtemplates on your server (we use this method on our website
http://deluxe-tree.com).
You should set a pressed item using Javascript API:
function apyt_ext_setPressedItem(menuInd, itemID)
<script type="text/javascript"><br>
var i = 4 //index of the selected item
onload=setPressed;
function setPressed()
{
dtreet_ext_setPressedItem(0,dtreet_ext_getItemIDByIndex(0, i));
}
</script>
To expand specific items you should use the following function: dtreet_ext_expandItem (dtreet_ext_getItemIDByIndex (0, 11), 1);
Q: I wanted to know how to hide/ disable a menu item for a particular user/roleid in dreamweaver dhtml menu..
A: You can find more info here:
http://deluxe-menu.com/dynamic-functions-sample.html
You can try to use API functions in that case:
function dm_ext_changeItemVisibility (menuInd, submenuInd, itemInd, visibility)
To disable items you should set the target parameter to "_".
You can try to use the following function
function disable()
{
dm_ext_changeItem(0, 1, 1, ["", "", "", "", "", "_"]);
}
to disable your items.