The menu has over 500 links and functions like a dream! One issue I am having, that I just cannot seem to figure out how to fix, is the following:
Our nav menu is displayed approx. 70 pixels from the top of the browser window. On the drop down links that have a number of items (example 1 in the image below), they display underneath the menu, however on the links that have only a few items, they display above the menu bar in java script as in example 2 in the image below.
How can I set it so that no matter how many drop-down items there are, they always display under the menu bar in java script, not on top?
A: Try to set the following parameter:
A: bselectedSmItem is index of the selected subtab.
If you use var tabMode=0;
you should set it to:
Q: When I stay on one page (for example "Home") аlso must have the menu-point "home" another color or font. How can I make this?
A: You should set pressed item.
Please, check the following parameter
This parameter sets an index of an item that will be highlighted by default.
-2 - the toggle mode is disabled;
-1 - the toggle mode is enabled, but no items highlighted by default;
0,1,2,3,... - index of highlighted item in a top-menu.
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.
You can also set the correct
parameter on each html page.
Q: Please let us know how to select the font and background colors using the hexidecimal number?
We have another website and want to use the exact same color scheme.
We want to enter the number such as FF8080.
Hopefully, we can enter the hex numbers into this program.
A: You should write, for example, so:
var menuBackColor = "#FF8080";
var menuBorderColor = "#FF8080";
var itemBackColor = ["#FF8080","#FF8080"];
var itemBorderColor = ["#FF8080","#FF8080"];
var fontColor = ["#000000","#FFFFFF"];