(c) 2007, DHTML-Menu.com
  Recent Questions
  Write To Support

    How to add the new items to the menu javascript without using two data files?

Return to Recent Questions

Q: I have set up a menu javascript that uses one configuration file.
However, on ONE page, the menu javascript needs to have three additional items, with a different style.
Is there a way to add the three items with a different style via javascript on that one page rather than using two differerent 'data.js' files- which is how I have it set up now.

A: You can use dynamic API function
dm_ext_addItem() to add items.

In your data.js file you should add new Individual Item Styles.

See how you should write this function:
function dm_ext_addItem (menuInd, submenuInd, iParams)

< SCRIPT src="Welcome to Catawba Animal Clinic, P_A_files/data.js" type=text/javascript> </SCRIPT>
<script type="text/javascript"> dm_ext_addItem(0, 0, ["Boarding Request Form","request.htm", , , , "_self", "0", "-1", , ]); </script>
<script type="text/javascript"> dm_ext_addItem(0, 0, ["Boarding Policies","", , , , , "0", , , ]); </script>
<script type="text/javascript"> dm_ext_addItem(0, 0, ["Express Checkout Info","", , , , , "0", , , ]); </script>

You should also upload dmenu_dyn.js file on your server into the same folder with dmenu.js file.

Return to Recent Questions

Copyright (c) 2012, DHTML-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Write Us
All rights reserved. bootstrap theme builder | easy free website builder | bootstrap navbar | CSS Slider | css slider