|
|
How to add the new items to the website navigation bar without using two data files?
Return to Recent Questions
Q:
I have set up a website navigation bar that uses one configuration file.
However, on ONE page, the website navigation bar 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
Related:
- March 15, 2009 - How can I disable items in dhtml menu samples?
- March 28, 2009 - Is it necessary to add dmWorkPath parameter in the css pulldown menu?
- March 31, 2009 - Is there any way can we display submenu items on mouse over in form drop down menu?
- Apr 01, 2009 - How can I set different parameters for diferent items in my popup menu?
- Apr 03, 2009 - I would like to change the height of the submenu items in the menu css html...
- Apr 04, 2009 - Is there a way to have an automatic line-break for large submenu items in css menu hover?
- Apr 06, 2009 - Can the link items NOT open a new window in the dynamic menu javascript?
- Apr 11, 2009 - I cannot see the shadow on the top items in my javascript for drop down menu example.
- Apr 15, 2009 - My mainmenu items are not links. So I need no link cursor for these menu in css items.
- Apr 20, 2009 - I need the BG color behind items to be flush with the sides of the drop down menu using.
- Apr 30, 2009 - Do you have a javascript jump menu that allows the sub-items to 'slide' out from the main items?
|