|
|
Is it possible to insert a dhtml foldout menu item at the top of the submenu?
Return to Recent Questions
Q:
Is it possible to insert a dhtml foldout menu item at the top of the
submenu? For example, if a dhtml foldout menu is defined as:
var menuItems = [
["Search","","","","","","1","0"],
["|Residential","srch.php","","","","","0"],
["|VacantLand","srch.php?cri","","","","","0"],
["|Commercial/Industrial","srch.php","","","","","0"]];
How can I add a new item above “Residential?” I’ve tried the
following with no luck — the forth argument does not seem to be used:
dm_ext_addItem(0, 1, ["New Sample", "testlink.htm", "", "", "Your
Sample Tooltip", "middle", 0], 0)
A:
To insert item in the specific position you should use the
following function:
function dm_ext_addItemPos (menuInd, submenuInd, iParams, Pos)
Return to Recent Questions
Related:
- Sep 02, 2006 - Little vertical spacers between menu items in the drop down menu.
- Sep 04, 2006 - Set a menu item to pressed when a page is loaded.
- Sep 06, 2006 - The first item of the html drop down menu stays highlighted.
- Sep 15, 2006 - Are vertical menus also supported? I don't see any in the javascript menu examples.
- Sep 16, 2006 - I need to be able to highlight the selected menu item of the html tree menu.
- Sep 26, 2006 - Why is the submenu has a different colour than menu items in the javascript menu bar?
- Sep 26, 2006 - Is there a way to change the height of the main buttons in my simple dhtml menu.
- Oct 01, 2006 - All of the items in html pull down menu are different sizes.
- Oct 12, 2006 - Can I create a scroll vertical menu on the right side and the subnav popout on the LEFT?
- Oct 26, 2006 - I would like to load an iframe into one of the items in oncontextmenu.
- Oct 27, 2006 - In IE 6.0 and Firefox 1.5.0.4, the submenus of my dhtml dropdown menu are not visible
|