Recent Questions Javascript Tree Menu Script
Q: I installed the trail version before I want to buy it. It looks wonderfull, but I was unable to make menu items inside a PHP file.
Do you have an example(tutorial) how to at deluxe menu inside a php file ?
A: Unfortunately, we don't have such example.
You can create your menu using PHP, for example:
<?php echo " ["|Bibliografia - ksiazki","home_bibliografia_dol.php","","","",,,],"; ?>
<?php echo " ["|Bibliografia - artykuly","home_bibliografia_dol1.php","","","",,,],"; ?>
<?php echo " ["|Bibliografia - linki","home_bibliografia_dol2.php","","","",,,],"; ?>
Please, see the following link too
http://deluxe-menu.com/generate-menu-from-database-xml-php-asp-vb-support.html
Q: I do have issues. There are not the problems when you are on the home page (you can click 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 dropdowns 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 thefollowing 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.
Q: Is there a way to specify certian font styles escpecailly a hanging indent on the text of the navigation menubar?
A: You should use Individual styles, for example:
var itemStyles = [
["fontStyle=bold 12px Arial,Helvetica", "fontDecoration=none,underline"], // style 0
["fontStyle=normal 12px Arial,Helvetica", "fontDecoration=underline,underline"], // style 1
["fontStyle=normal 14px Arial,Helvetica", "fontDecoration=none,none"], // style 2
];
And assign styles to your items:
var menuItems = [
["1 Item","index.php","","","","_self","0",,,],
["2 Item","","","","","_self","1",,,],
["|Submenu Item","","","","","_self","2",,,],
...
Q: I just discovered your product and I think it is fabulous! I would like to buy it, but have one issue which is strange:
I have a list of 12 items, each with a submenu that is loaded using the ajax technology. The submenues are loaded correctly for the first 8 items, but not for the last 4 items. I can switch items around, always the first 8 only get loaded. Is there a limitation to 8 items?
A: No, there is no such limitation.
Please, check the following parameter:
var dmAJAXCount=0;
That variable set the maximal number of submenus that will be loadedfrom server on your page.