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:
- Sep 02, 2006 - Little vertical spacers between menu items in the drop down menu.
- Oct 01, 2006 - All of the items in html pull down menu are different sizes.
- Oct 31, 2006 - Is it possible to use the AXAJ-Like technology and Javascript-API in css pop up menu?
- Nov 25, 2006 - I need only one column of submenu html to be displayed, all other columns should be closed.
- Dec 11, 2006 - How to add the new items to the dhtml vertical menu without using two data.js files?
- Dec 21, 2006 - Can I install and run this pull down menu html on a server running OS X?
- Dec 29, 2006 - Flash element in Firefox disappears behind the javascript mouse over menu.
- 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?
- Jan 15, 2007 - I can't put the javascript layer menu where I want it on my page.
- Jan 31, 2007 - I tried to create the html version of the rollover menus. It is still not working.
|