Recent Questions Script Tree Menu HowtoQ:
How can I set the padding for the dhtml horizontal menu text at the top? I want more padding on the left of the text but I don't want it centered. A: You can set bigger left padding for your Submenu Style, for example:
var menuStyles = [
["menuBackColor=transparent","menuBorderWidth=0","itemSpacing=1","itemPadding=0px 5px 0px 25px"],
itemPadding=0px 5px 0px 25px
top right bottom leftQ:
I am putting your deluxe menu on our pages but if I do not put the menu on top, then it the sub menus appear on opposite direction (from bottom to top.) So instead of dropping down, they drop up.
We do not want this to happen. Can you please let me know how to resolve this issue?
Mouseover menu submenu drops up unless you scroll down or put the menu on top. A: See if your submenu has a big height and there is no enough room under the menu to showthe whole submenu the submenu will be shown above the menu (if there is enough space toshow the whole submenu).
You can set exact height for the submenus, so they will go in the place under the menu.Q:
I purchased your product yesterday and was quite impressed, but I am having a bit of aproblem with my submenuitems. In the general menu properties there is a "Global" vartitemHeight = 22; My problem is that I would like my upper level of my dhtml tree to have one itemheight and my submenuitems to have a smaller height.Is this possible? A: In the XP Style
the item's height for the top items and submenus will be different.
If you want to use
you can set ite's height for the submenus:
And for other items use the blank icon with the height you want to have for the upper
level of your menu items.
Thanks, we tried giving var pressedItem=0; and the script as below:
We are facing 2 problems
1) Two menus are getting highlighted, the "Home" and the dynamic html menu which is called onLoad using dm_ext_setPressedItem (0,8,0,0); function)
2) The submenu of the dm_ext_setPressedItem (0,8,0,0) is not getting highlighted. A: Try to set
dm_ext_setPressedItem function has a following parameters:
function dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion, parentOpen)
So, if you want to highlight item in the submenu you should use itemInd of this item (notitemInd of the parent item).
For example you want to highlight submenu item of the 'Manage Users' parent item with
You can find more info about dynamic html menu indexes here:
So you should write the function in the following way:
dm_ext_setPressedItem (0, 3, 15, 1, 1)
menuInd = 0 if you have only one menu on the page
submenuInd = 3, see how to determine submenuInd in the table
itemInd = 15, see how to determine itemInd in the table
recursion = 1, to highlight parent items
parentOpen = 1, to open the submenu with the selected item.