How to modify data.js in deluxe menu to change the font color if the user click on css pull down menu.
function dtreet_ext_setPressedItem (menuInd, itemID)
var i = <?php echo $selitem; ?>;
You should define selitem using server side script.
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.Q:
The submenus are going up instead of down in the sub navigation bar. A: You should set the following parameter:
Click on the option "telefoonlijst" and a submenu has to pop-down… whay is this done not OVER the other object (e.e. the 'frameDESKTOP')
Click index2.htm to see the code is working when the top-frame is 120 pix large! A: Please, see how you should install the menu in cross-frame mode:
Unfortunately, Deluxe Menu can work within 1 frameset only. It can't work within nested framesets.
Notice that you should add dmenu_cf.js file in the folder where your menu is created in.