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

    Can I set pointer that tells path to all menu in java script files?

Return to Recent Questions


Q: I use graphic buttons in the menu in java script, I believe the color buttons locate in @BOOK1\@Test_BOOK1.files.
At this directory level, the display is OK,

However, if I click on "06) Introduction.to.Small-Signal.Amplifiers\<<Introduction >>>(06_IT.htm)" to move to the next level, the color buttons won't display properly.

Can I set pointer that tells file 06_IT.htm that I have "@Test_BOOK1.files" in "@BOOK1" folder?


A: You can use additional parameter to make menu in java script image paths absolute:

var pathPrefix_img = "http://domain.com/images/";
These parameters allow to make images and links paths absolute.
For example:

var pathPrefix_img = "http://domain.com/images/";
var menuItems = [
["text", "index.html", "", ""],
];

Images paths will be look so:
http://domain.com/images/icon1.gif
http://domain.com/images/icon2.gif

Please, try to use this parameter.





Return to Recent Questions

Related:
   
Copyright (c) 2012, DHTML-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Write Us
All rights reserved. bootstrap slider | bootstrap builder | kostenlose website | creador de paginas web | jQuery Slider Free Download