| 
       
          
                    How can I make paths in my DHTML MENU absolute?
       
      Return to Recent Questions
 
   
Q:
How I can make paths for images and links in my DHTML MENU absolute?
  
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 in your DHTML MENU. 
  
  
 
  
Return to Recent Questions
        
   |