I have problems with my horizontal menu using if I paste a data file in a subfolder
Return to Recent Questions
Q:
I have a Menu called topnavbar.js when this horizontal menu using is applied to a
page not in a subfolder the links work. This topnavbar menu includes
the following items; District Office, Cumberland Head Elementary
School, Beekmantown Elementary School, Beekmantown Middle School,
and Beekmantown High School.
However, if you put the topnavbar on a
page that is located in a subfolder the links in the topnavbar add
this subfolder name to the link. So instead of districtoffice.htm
the link is transportation/districtoffice.htm and that page doesn’t
exist.
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
Please, try to use these parameters.
Return to Recent Questions
Related:
- March 13, 2009 - Now we are having the "Incorrect Copyright" on our horizontal menu using...
- March 30, 2009 - Is there a way to optimize the horizontal menu using to reduce the loading time for submenus?
- Apr 16, 2009 - Do you have a template that allows me to have a standard windows tree control horizontal menu using?
- May 04, 2009 - The horizontal menu using won't align itself correctly in Firefox.
- May 14, 2009 - Can I divide data file of my script drop down menu on several files?
- May 21, 2009 - I am looking to integrate your horizontal menu using into a CMS such as Joomla.
- Jun 07, 2009 - The background images for horizontal menu using are missing in the browser...
- Jun 25, 2009 - Your horizontal menu using doesn't work on Mac with Safari.
- Jul 12, 2009 - Is it possible to set target attribute individually for the horizontal menu using items?
- Jul 29, 2009 - Is there any way to change the font size of the submenu links in horizontal menu using?
- Jul 31, 2009 - How to add the new items to the javascript onmouseover menu without using two data files?
|