Recent Questions
Q: Is there a way to make the dhtml pull down menu not reset after a link is clicked.
Now every time I click a link in the tree menu it takes me to the linked page
but all the menus re-expand.
A: When user clicks the link, the browser loads a new page and the script re-create the menu.
If you want to open the needed section automatically on load you can use the following:
1. Save the state to cookies
var tsaveState=0;
2. Use frames
3. Put the special script on each page of site that will open appropriate section:
(dtreet_ext_expandItem)
See more info here:
http://www.deluxe-tree.com/functions-info.htmlQ: In deluxe tuner, on a horizontal dropdown menu, how I make sure long menu items can wrap into 2 lines? Losing my mind trying to figure this out.
For example...
Instead of.. International Music X Home Decoration X Books..... I want to to do:
International X Home X Books
Music Decoration
A: You should set the following parameter:
var noWrap=0;
Or use standard <br> tags inside item's text:
["International Music X Home<br>Decoration X Books","", "", "", "", "", "0", "0", "", "", "", ],
Try that.Q: How does the SiteMap function work in java menu software? Does it automatically create tree-view from the domain registration (License Key Generator)? We want to generate SiteMap from our domain automatically and save it as HTML to be displayed on our homepage.
A: You can create Sitemap for your menu using java menu software.
Tools/Generate Google XML Sitemap
Tools/Generate Sitemap
> We want to generate SiteMap from our domain automatically and save it
> as HTML to be displayed on our homepage.
There is no such a feature in Deluxe Menus, you can create sitemap forthe menu only.
Q: From your website, I see that you are able to populate a menu through ASP/VB, but I have not been able to figure out how this is done.
How exactly do you use an ASP script to generate the menu items for the dynamic menu?
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>
Unfortunately we don't have examples with ASP and SQL.
The example of the menu working with PHP/MYSQL you can find here:
http://deluxe-menu.com/rq-loading-bar-MySQL-support.html