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:
- Sep 26, 2006 - Is there a way to change the height of the main buttons in my simple dhtml menu.
- Oct 27, 2006 - I'm trying to get a cascading menu that will float as I scroll down the page.
- Oct 27, 2006 - In IE 6.0 and Firefox 1.5.0.4, the submenus of my dhtml dropdown menu are not visible
- Nov 22, 2006 - I cannot get the background color of the html popup menu to change
- Dec 09, 2006 - Is it possible to have css drop down menu items act like regular hyperlinks?
- 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.
- Jan 12, 2007 - Does your dynamic menu allows to keep the menu-item that has been pressed hightlighed?
- Jan 29, 2007 - I want to have a different font and color for my javascript hide submenu items
- 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?
|