When I try to install menu javascripts onto html files that appear in subfolders of the site, the images do not appear.
Return to Recent Questions
Q:
I have the menu working perfectly on the main page of the website,
but when I try to install menu javascripts onto html files that appear in subfolders of the site, the images do not appear.
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:
- Nov 25, 2006 - I need only one column of submenu html to be displayed, all other columns should be closed.
- Dec 21, 2006 - Can I install and run this pull down menu html on a server running OS X?
- Jan 07, 2007 - I can't install my javascript mouseover menu on the page made with Yahoo sitebuilder
- Jan 11, 2007 - Does this drop down menu script need Java Virtual Machine installed on the computer?
- Feb 15, 2007 - I can see only the code generated by the GUI tool.How should I install html menus?
- Feb 28, 2007 - Since I installed the floating menu script on our website the homepage loads slowly
- April 25, 2007 - I have some problems with installation of the flash dropdown menu
- Sep 14, 2007 - Can I install multi html tab menus?
- Nov 05, 2007 - I am attempting to install a dhtml menu example I've created into FrontPage20March
- Nov 19, 2007 - Do I have to buy a license for each website I install this css dropdown menu
- Dec 11, 2007 - Is there a way to install down menu in html correctly if we use nested frames?
|