Recent Questions
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: I want tree view menu to be in expande state mode, how can I do this? Also, same goes for all the other menus depending which link I click.
A: You can try to to call the following function/functions to expand/highlight items, for example:
<script>
dtreet_ext_expandItem (dtreet_ext_getItemIDByIndex (0, 0), 1);
dtreet_ext_setPressedItem (0, dtreet_ext_getItemIDByIndex (0, 1));
</script>
See more info about API functions here:
http://www.deluxe-tree.com/functions-info.html
Example:
Deluxe Tabs doesn't have API functions to set pressed item on-the-fly. You can set presseditem on the page loading only.
But you can use onClick event for the Deluxe Menu items and call the following function toopen appropriate tab:
dtabs_itemClick(menuN, itemN);
where
menuN - index of a menu on a page, >= 0.
itemN - index of a tab you want to show, >=0.
["<div onClick='dtabs_itemClick(0,2)'>Open 3rd tab</div>","", "deluxe-menu.files/icon1.gif", "deluxe-menu.files/icon1o.gif", "", "", "", "", "", "", "", ],Q: I have a website where the customer asks (requested popup) for a onclick popup window so they can listen in to a radio braodcast. i.e. popup on demand.
But, the popup needs to keep working so the user can move to another website without dropping the broadcast. In otherwords If the popup is dropped so is the broadcast. That is my issues. Help! Also, using a standard popup windows doesn't always work Cross browsers and IE works ok but Firefox still allows the user to resize the windows even if you tell it not to.
A: No, it is not possible to leave the onclick popup window after you close thepage with popup.