(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

Bootstrap Table Template Top Mindblowing HTML Image Slideshow Ideas  |  Best 18 Landing Page Bootstrap Theme Roundup  |  40+ Free Bootstrap Templates 2021  |  Offline Mobile Website Builder Software  |  Free and Easy Website Builder  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. AI Website Builder | Free AI Website Generator | Website Generator AI | AI web design generator | AI website design generator