|
|
|
If I try to open javascript tree menus links from the another page non of them work
Return to Recent Questions
Q:
I do have issues. There are not the problems when you are on the
home page (you can click on javascript tree menus on one of the dropdown submenus and go there.
However, when you try to go to another page from there to another page on a
nother drop down, nothing happens except javascript erros. The javascript tree menus
physical work, in that they drop down, but the links don't go anywhere.
Does that make sense.
A:
See, the problem was in your dmWorkPath parameter
On all pages placed in the subfolder you should write it in the
following way:
<script type="text/javascript">var dmWorkPath = "../ifnav.files/";</script>
Please, correct it.
You should also use additional parameters to make menu paths absolute:
var pathPrefix_img = "http://domain.com/images/";
var pathPrefix_link = "http://www.infocusnet.org/design/";
These parameters allow to make images and links paths absolute.
For example:
var pathPrefix_img = "http://domain.com/images/";
var pathPrefix_link = "http://www.infocusnet.org/design/";
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
Please, use pathPrefix_link parameter.
Return to Recent Questions
Related:
- March 16, 2009 - Is there any way to keep a dhtml menu script lit up when going to another page?
- March 19, 2009 - How to get the drop down menu creator to highlight and stay on the page you're viewing?
- March 19, 2009 - I need that the code for drop down menu loads pages into an iFrame.
- March 21, 2009 - I am trying to get my submenu to be all black in my dynamic menu creation...
- March 26, 2009 - After click the links the drop down menu javascript stops showing up in cross-frame mode...
- March 27, 2009 - I can't validate my pages with W3C or WDG validators using css cascading menu...
- March 30, 2009 - I'm having a difficult time trying to integrate your html pulldown menu into frame system...
- Apr 06, 2009 - I am trying to use the sliding menu javascript in a perl script.
- Apr 10, 2009 - I can not figure out how to fix the javascript menu maker from going off the page in Mozilla...
- Apr 14, 2009 - The page I try to open in menu popup could not found...
- Apr 17, 2009 - I have 25 images on one page. I want to use it's own popup javascript menu vertical for each image.
|