Recent Questions
Q: I have to pass dynamic value from the link when the user click the mouseover menu.
A: Actually you can use your own Javascript code instead standard links. For example:
var menuItems = [
["text", "javascript:your_code_here"]
];
or
var menuitems = [
["<div onClick='your_code_here'>item text</div>", ""]
];
Q: I have been testing.
I have another question,
during our test we did few test with other software, and we have the posibility while we are under an option on the menu we right click and choose open in a new window.
We cant find the way to do this or is not posible?
A: You can paste your own objects within menu items to capture a rightclick, for example:
["<div style='width:100%;height:30px' onContextMenu='your_code'>text</div>",...]
Q: How I can write the changed dhtml pull down menu into a database?
A: Unfortunately, we don't have such example.
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 Tree -->
<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>
<!-- (c) 2006, http://deluxe-tree.com -->
<script type="text/javascript" language="JavaScript1.2">
// and describe parameters of a menu
var parameter1=value1;
var parameter2=value2;
etc.
var tmenuItems = [
// 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
This example is not for Deluxe Tree menu, but you can create your menu in the same way.
Q: We haven't managed to find out how to activate a popup window through click in a flash? Is there possible to call a single jsfunction to activate it?
A: You can deluxePopupWindow.open() function to open your window:
<a href="javascript:;" onclick="deluxePopupWindow.open('window1', 'Content1 Content1','Window1','width=220,height=100,resizable,scrollbars=no,middle,right,fade-effect', 'windowsvista_graphite')">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="120" HEIGHT="40">
<PARAM NAME=movie VALUE="deluxe-menu.files/flash-deluxe-menu.swf">
<PARAM NAME=quality VALUE=best>
<param name="wmode" value="opaque">
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="deluxe-menu.files/flash-deluxe-menu.swf" quality=best bgcolor=#FFFFFF wmode="opaque" WIDTH="120" HEIGHT="40" NAME="data-samples/flash-deluxe-menu" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT></a>