| 
       
          
                    When I try to install dynamic dropdown menu onto html files that appear in subfolders of the site, the images do not appear.
       
      Return to Recent Questions
 
  
Q:
 I have the dynamic dropdown menu working perfectly on the main page of the website,
 but when I try to install it onto html files that appear in
 subfolders of the site, the images do not appear. I have put ../
 before all the links I can find and have the following codes placed
 in my file, what am I doing wrong?
  
A:
 You can use additional parameters to make dynamic dropdown 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 06, 2006 - The alighment of the dropdown menu is off to the right in  Firefox...
 - Sep 11, 2006 - How can I hide my dropdown menu on print?
 - Sep 11, 2006 - If I use doctype the settings of the submenus in javascript dropdown menu get lost.
 - Sep 23, 2006 - Is it possible that javascript drop down menus doesn't put anything on the local computer?
 - Sep 24, 2006 - If there is a way of establishing the width at "runtime" in the javascript dynamic menu?
 - Oct 13, 2006 - Under the menu images there is a gray line that makes it look broken.
 - Oct 27, 2006 - In IE 6.0 and Firefox 1.5.0.4, the submenus of my dhtml dropdown menu are not visible
 - Nov 10, 2006 - I can't make my vertical dynamic menu work in at Dreaweaver template  - why?!
 - Nov 20, 2006 - I've tried to add the pathPrefix_img but I'm still having trouble with images in jump menu.
 - Nov 29, 2006 - Why the  background images disappear for a while after hovering over html menubar?
 - Nov 30, 2006 - Does your html menu dropdown have the ability to have small text boxes on it?
           
               
   |