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


 

    How to add the new items to the dhtml vertical menu without using two data.js files?

Return to Recent Questions


Q: I have set up a menu that uses one 'data.js' file.
However, on ONE page, the menu 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?
I think I know how to handle the styles, but I'm unsure how to add the three new items without using two differerent 'data.js' files- which is how I have it set up for the time being. You may want to visit the site to see what I mean.


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

Please, 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 upload dmenu_dyn.js file on your server.

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





Return to Recent Questions

Best Website Builder for Education, Software Companies, Designers, Videos Best AI Website Builder - Create Website Design with AI  |  Best Website Builder for Digital Marketing Agencies, Travel Agencies, Interior Designs  |  Website Builder for Online Stores, Restaurants, Musicians, Real Estate  |  Website Builder for Churches, Authors, Consultants, Magazines  |  Website Builder for Beginners, Bloggers, Writers, IT Companies  | 
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 | AI Website Builder | AI Website Maker | Website Generator AI