(c) 2016, Deluxe-Menu.com
Search  
Ctrl+F2 - enter/switch menu | Arrow keys - navigate | Esc - exit menu  
  Support
  FAQ
  Contacts
  About Us
  Recent Questions


 

    I am having problems with my html files that are located in sub folders of my site the menu html does not work on them.

Return to Recent Questions


Q: I am having problems with my html files that are located in sub folders of my site the menu html does not work on them. If they are in the root directory there is no problem.

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






Return to Recent Questions

Related:
Best 46 Fresh CSS Themes Collection Top 54 Brand New jQuery Themes List  |  AMP Mobile Page Template Review  |  Perfect Responsive JS Website Templates Review  |  46 Fantastic CSS3 Web Page Templates Overview  |  Top 41 Wonderful CSS3 Templates Collection  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. Free AI Website Builder | AI Website Generator | AI Website Generator | Website Generator AI | AI web page design generator