Recent Questions Joomla Tree MenuQ:
How woud I make all the sub-menu’s height and text smaller in the css dhtml menu?A: You can create Individual Item Style and assign it to each item insubmenu.
var itemStyles = [
["itemHeight=10px","fontStyle=normal 9px Trebuchet MS, Tahoma"],
and assign it to each item in submenu:
["|Item 7","", "", "", "", "", "0", "", "", ],
["|Item 8","", "", "", "", "", "0", "", "", ],
you can also use standard <br> tags.
["|Home text<br>text","testlink.htm", "default.files/icon1_s.gif", "default.files/icon1_so.gif", "", "Home Page Tip", "", "", "", ],
My menu font is white. Is there a way to set the preview screen background color to something else than white?
Cause this is a problem as the main menu bar does not have a background color ( I want the background image of the page to shine through). A: Yes, you can do it. Please open in any text editor the following file:
You should set bgcolor parameter, for example:
However, you can achieve this by using standard html objects within items, for example:
var menuitems = [
["<div onContextMenu='your_code_here'>item text</div>", ""]
My client wants their drop down navigation to lock into place when someone visits a page. Is there a way to do this?
Right now it disappears when you click the link. A: I suppose that you're saying about submenus.
Try to set the pressed item using the following API function:
function dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion, parentOpen)
Sets a current pressed item.
menuInd - index of a dynamic menu on a page, >= 0.
submenuInd - index of a submenu, >= 0.
itemInd - index of an item, >=0.
recursion = true/false - highlight parent items.
parentOpen = true/false - open all submenus to show the selected item
See example here:
Try to click 'Highlight "Product Info/Installation/Description ofFiles" item'.
You can also try to use the following parameter:
var smHidePause = 1000;
A delay (in ms) between mouse is moved from submenu and its closing.
You can make submenus to stay visible till you click outside the menu or scroll your page.
To enable this feature you should set this parameter in the following way: var smHidePause = -1;