(c) 2007, DHTML-Menu.com
  Recent Questions
  Write To Support

    My site has three levels of a folder structure. Can I create only one menu javascript example

Return to Recent Questions

Q: My website has four levels of a folder structure.  Can I make a menu javascript example that will allow me to link in and out of folders?  Or must I design four menu's with different link locations. 

A: You can use one menu.

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:

Images paths will be look so:

Please, try to use these parameters.

Return to Recent Questions

Copyright (c) 2012, DHTML-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Write Us
All rights reserved. parallax scrolling | easy website builder | best web design software | CSS Slideshow | bootstrap image slider