I am having some difficulty dynamically adding items to a dhtml sliding menus.
Return to Recent Questions
Q:
I am having some difficulty dynamically adding items to a dhtml sliding menus.
A:
See dtreet_ext_insertItem () function has the following parameters:
function dtreet_ext_insertItem (menuInd, parentItemID, itemInd, itemParams)
Creates a new item and inserts it into a specified position.
menuInd - index of a menu on a page, >= 0.
parentItemID - ID property of an item.<, >= 0.
itemInd - index of a new item within the menu, >= 0.
itemParams - item parameters.
Notice that parentItemID is the Id property of the parent item (not
index). If you want to add top items you should set parentItemID=0.
itemInd - you should use this parameter if you want to add item in the
specific place, for example set itemInd=5 if you want to add item
before the existing item with itemInd=5.
If you set itemInd=null the new item will be added at the end of this submenu and its index will be added automatically.
Return to Recent Questions
Related:
- Oct 27, 2006 - In IE 6.0 and Firefox 1.5.0.4, the submenus of my dhtml dropdown menu are not visible
- Dec 11, 2006 - How to add the new items to the dhtml vertical menu without using two data.js files?
- Dec 25, 2006 - How do you created a multiple column for only one menu js item.
- Feb 02, 2007 - The background images for dhtml drop down menus are missing in the browser
- Feb 05, 2007 - Can we specify our own onclick event handler for the javascript sliding menus item?
- Feb 11, 2007 - Is it possible for the dhtml sliding menu to highlight selected item on the page?
- March 04, 2007 - For some reason all of the javascript dhtml menu items are squished together
- May 02, 2007 - Is there any way can we display sublevel menu items on mouse over in dhtml tab menu
- May 06, 2007 - Sub-menus appear away for the menu/ dhtml navigation bar.
- May 16, 2007 - How do I get the sub-menus to open in the 2nd frame in the dhtml menu frame?
- May 18, 2007 - What I try to make is a menu dhtml with items having a border of only 1 px
|