I am having problems with my html files that are located in sub folders of my site the menu html does not work on them.
Return to Recent Questions
Q:
I am having problems with my html files that are located in sub folders of my site the menu html does not work on them.
If they are in the root directory there is no problem.
A:
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
Return to Recent Questions
Related:
- Aug 30, 2006 - Can all the java script be contained with in the html and not use an external .js file?
- Sep 06, 2006 - The first item of the html drop down menu stays highlighted.
- Sep 11, 2006 - If I use doctype the settings of the submenus in javascript dropdown menu get lost.
- Sep 16, 2006 - I need to be able to highlight the selected menu item of the html tree menu.
- Sep 18, 2006 - The submenus of the cross frame menu are offset by about 100 pixels to the right.
- Sep 18, 2006 - Does the js menu work to load pages into an iframe?
- Sep 25, 2006 - My menu icons are not appearing in the preview, or when I launch deluxe-menu.html
- Sep 26, 2006 - Why is the submenu has a different colour than menu items in the javascript menu bar?
- Sep 26, 2006 - Is there a way to change the height of the main buttons in my simple dhtml menu.
- Oct 01, 2006 - All of the items in html pull down menu are different sizes.
- Oct 03, 2006 - Do I have the ability to change colors for the menus and the sub menus in the cascade menu.
|