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

    Links don't work in the dhtml menu maker. How can I correct this?

Return to Recent Questions


Q: I have a frame page consisting of a header and content.

The dhtml menu maker is in the header and submenus show in the content frame when they drop down.

Any link in any dhtml menu maker will work the first time just fine.

But, if I pick another link in any drop down menu, it appends the address of the first link to the address of the second link and the URL fails.

I tried this test page on two different PCs, just in case there was a problem on my browsers. MS IE.6.0


A: Use additional parameters to make dhtml menu maker 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 dhtml menu maker parameters.





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. best website builder | bootstrap image gallery | free website generator | bootstrap buttons | free bootstrap templates