Must I have the web navigation bar saved in each folder?
Return to Recent Questions
Q:
I place all of my files in folders. If I want the web navigation bar to
work I have to have the web navigation bar saved in each folder for it to
work with the files inside those folders.
A:
There is no need to copy al files for the menu in each folder.
To install the menu you can use such paths:
<script type="text/javascript">var dmWorkPath = "../menudir/";</script>
<script type="text/javascript" src="../menudir/dmenu.js"></script>
You can use additional parameters to make menu paths absolute:
var pathPrefix_img = "http://domain.com/images/";
var pathPrefix_link = "http://domain.com/pages/";
These parameters allow to make images and links paths absolute.
For example:
var pathPrefix_img = "http://domain.com/images/";
var pathPrefix_link = "http://domain.com/pages/";
var menuItems = [
["text", "index.html", "icon1.gif", "icon2.gif"],
];
So, link path will be look so:
http://domain.com/pages/index.html
Images paths will be look so:
http://domain.com/images/icon1.gif
http://domain.com/images/icon2.gif
Please, try to use these parameters.
Return to Recent Questions
Related:
- March 14, 2009 - How do I enable javascript on the new browser, so I can see my web navigation bar?
- March 31, 2009 - Is there any way can we display submenu items on mouse over in web navigation bar?
- Apr 17, 2009 - I have 25 images on one page. I want to use it's own popup web navigation bar for each image.
- May 05, 2009 - I'm wondering if you can use the ASP code within Item Link of the web navigation bar?
- May 22, 2009 - I would like to have links of web navigation bar to our website when javascript turned off.
- Jun 08, 2009 - Is it possible to call JScript functions from web navigation bar?
- Jun 26, 2009 - I'm looking for a web navigation bar system that can be placed in a table cell.
- Jul 13, 2009 - Flash in Firefox disappears behind the submenus of web navigation bar.
- Jul 30, 2009 - I need the cursor not to change when hovering over items which don't have links in web navigation bar
- Aug 16, 2009 - I cannot change the background color of the web navigation bar
- Sep 03, 2009 - I couldn't see web navigation bar on my website, but I saw it on my local machine.
|