Recent Questions
Q: I have one problem you may be able to help with:
If I set
var tsaveState = 1;
The following errors are generated:
_tls is not defined
tob has no properties
and the menu doesn't display.
If you could help with this I would be grateful.
A: You should use dtree_ss.js file.
You should install your menu so:
<noscript><a href="http://deluxe-tree.com">Javascript Tree Menu by Deluxe-Tree.com</a></noscript>
<script type="text/javascript" src="menudir/dtree.js"></script>
<script type="text/javascript" src="menudir/dtree_ss.js"></script>
<script type="text/javascript" src="menudir/tree-data.js"></script>
Q: Just one more question.
I'm making a drop menu sample but I want the dropdown sub menus to drop up!
ie: the nav bar will actually be at the bottom of the page so when you hover over, I need the sub items to rise up.
Can you force this? I can't seem to find anywhere to do it.
A: You should set the following parameter:
var subMenuVAlign="bottom";
Q: Do you have any working examples of a menu generated using .php from a MySQL database?
Our website is dynamic from a MySQL db and we already have categories and sub-categories. It would be useful if we could use this with our deluxe menu.
I don't know how to set this up, so any assistance would be appreciated.
A: You may generate a menu from a database or XML using any server-side script, e.g., PHP, ASP, VB, etc.
However, these scripts don't work inside of Javascript .js files, so, you should move parameters of a menu from a .js file into an html-page, e.g.:
<!-- Deluxe Menu -->
<noscript><a href="http://deluxe-menu.com">Javascript Menu by Deluxe-Menu.com</a></noscript>
<script type="text/javascript"> var dmWorkPath = "menudir/";</script>
<script type="text/javascript" src="menudir/dmenu.js"></script>
<!-- (c) 2006, http://deluxe-menu.com -->
<script type="text/javascript" language="JavaScript1.2">
// and describe parameters of a menu
var parameter1=value1;
var parameter2=value2;
etc.
var menuItems = [
// here you generate items using server-side scripts (php, asp, vb, etc.)
];</script>
The example of the menu working with PHP/MYSQL you can find here:
http://deluxe-menu.com/rq-loading-bar-MySQL-support.html
Q: When I save the file in our folder all the icons stop showing. I placed a image folder in our IE folder and still no icons are showing.
A: You should check all your paths.
Please, check that you have correct paths in the tmenuItems. Forexample:
["|Samples", "", "icon3_s.gif", "icon3_so.gif", "", "Samples Tip"],
["||Sample 1", "testlink.htm", "iconarrs.gif"],
["||Sample 2", "testlink.htm", "iconarrs.gif"],
["||Sample 3", "testlink.htm", "iconarrs.gif"],
["||Sample 4", "testlink.htm", "iconarrs.gif"],
You can also try to use the following parameter:
var tpathPrefix_img = "img/";