(c) 2016, Deluxe-Menu.com
Search  
Ctrl+F2 - enter/switch menu | Arrow keys - navigate | Esc - exit menu  
  Support
  FAQ
  Contacts
  About Us
  Recent Questions


 

    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:
Website Builder for Online Stores, Restaurants, Musicians, Real Estate Website Builder for Beginners, Bloggers, Writers, IT Companies  |  Website Builder for portfolio and SEO  |  Best Website Builder for podcasts and affiliate marketing  |  Website Builder for nonprofits and therapists  |  Website Builder For Kids & Musicians  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. Free AI Website Builder | AI Website Generator | Website Generator AI | AI website design generator | AI web page design generator