Recent Questions
Q: Can I expand a css tree menu from a link in my html page?
A: Yes, it's possible, please see
http://www.deluxe-tree.com/functions-info.html
function dtreet_ext_expandItem (itemID, expand)
function dtreet_ext_getItemIDByIndex (menuInd, itemInd)
Q: I am having some difficulty dynamically adding items to a tree javascript and menu.
I have a menu with one "root" item. I see the use of the "+" symbol within the item name. I do not see any documentation regarding this symbol, only "|". Can you explain?
If I have one menu with this one "root" node, how would I add an subitem to this root node?
Here is my code so far, but the inserted items appear to be at the same level as the root node.
var rootItem = dtreet_ext_getItemIDByIndex ( 0,0 );
var menuItem = new Array(10);
for ( var i = 0; i < producers.length; i++ )
{
var producer = producers[ i ];
menuItem[0] = producer.name;
dtreet_ext_insertItem ( 0, 0, i + 1, menuItem );
A: See dtreet_ext_insertItem () function has the following parameters:
function dtreet_ext_insertItem (menuInd, parentItemID, itemInd, itemParams)
Creates a new item and inserts it into a specified position.
menuInd - index of a javascript and menu on a page, >= 0.
parentItemID - ID property of an item.<, >= 0.
itemInd - index of a new item within the javascript and menu, >= 0.
itemParams - item parameters.
Notice that parentItemID is the Id property of the parent item (notindex). If you want to add top items you should set parentItemID=0.
itemInd - you should use this parameter if you want to add item in thespecific place, for example set itemInd=5 if you want to add itembefore the existing item with itemInd=5.
If you set itemInd=null the new item will be added at the end of this submenu and its index will be added automatically.
Q: I bought the Deluxe Menu system for one website. Javascript select menu works well on all versions of IE that I tried (5,6,7)
However, the background and shadow do not render in Firefox. As a result the menu is not as attractive.
Can you help with this or am I stuck?
A: You should add Individual Item style and assign it for the top javascript select menu items:
var itemStyles = [
["itemHeight=20px"],
];
["Home","index.shtml", "", "", "First Page", "", "0", "", "", "", "", ],
["Communication","", "", "", "", "", "0", "-1", "", "", "", ],
...
Filters and transitional effects are features of Internet Explorer5.5+ only.
See more info here:
http://www.deluxe-menu.com/filters-and-effects-sample.html
Q: The dhtml css drop down menu hides under the flash videos an the flash header in firefox, it works alright in IE and I hae been on your FAQs an followed the transparent code to add to the flash to make the menu appear and adding the code to the data file but it still doesnt work. Could you look at the source code of the site and show me an example of how it would work and what edits I need to make as it’s very frustrating that I cant launch the site without this.
A: See how you should install the menu with flash for Firefox here:
http://deluxe-menu.com/objects-overlapping-sample.html
You should set "opaque" parameter for your flash, set the followingparameter
var dmObjectsCheck=1;
and add
function dm_ext_ruleObjectHide()
{
return false;
}
in the beginning of your dhtml css drop down menu data file.