Recent Questions
Q: Can I change the style of javascript tree menu on the fly when I click the style menu items of the tree I made?
A: Theoretically you can do it.
Try to use
function dtreet_ext_userClick(itemID)
{
// Your Javascript code here
return true;
}
function and call
function dtreet_ext_changeItem (menuInd, itemID, itemParams)
function in it.
You should create Individual item style for this item and and assignthis style when you click on the item
Q: I was wondering why when I add the code below the flash disappears in safari, but now works in Firefox, when the dropdown menu is rolled over? Can it work in both Safari and Firefox?
function dm_ext_ruleObjectHide()
{
// Safari detect
if ((parseInt(navigator.productSub)>=20020000) && (navigator.vendor.indexOf('Apple Computer') != -1) && (navigator.product=='Gecko'))
return true;
else
return false;
}
A: The following code in this function
// Safari detect
if ((parseInt(navigator.productSub)>=20020000) && (navigator.vendor.indexOf('Apple Computer') != -1) && (navigator.product=='Gecko'))
return true;
hides flash in Safari.
Deluxe Menu can't drop down over an object correctly in Safari that iswhy the latter will be hidden for a time when the submenu is shown.
You can try to delete this code.
Q: It appears that this product only supports IE (on the PC and Mac). It does not support Safari or Netscape on any platform. Is that correct?
I ask because I like the product and would like to purchase the developer\'s license but our users represent a wide range of platforms and browsers.
A: DHTML products support a major part of modern browsers:
IE 5+
Opera 5+
Mozilla/Firefox
NS 6+
Also they support MAC browsers: Safari, IE, Firefox.
But DHTML Menu has some problems on this browsers with a submenuspositioning in some cases.
If you can't see Tree Menu in Firefox you should set these parameters:
Try to specify units in "px".
var tmenuWidth = "280px";
It's necessary to specify exact value for Mozilla browsers. It helpsto position menus correctly.
You should set this parameter:
var tmenuHeight = "auto";
Q: The problem is now that I have a scroll bar in the main menus although there is nothing to scroll.
Do you have any ideas?
A: You've set the exact width and height for submenus.
var smWidth = "100";
var smHeight = "250px";
var menuStyles = [
["smWidth=220px","smHeight=250px"],
["smWidth=200px","smHeight=250px"],
["smWidth=120px","smHeight=250px"],
];
Try to write:
var smWidth = "";
var smHeight = "";
var menuStyles = [
[""],
[""],
[""],
];
There will be no scroll bar in the main menus.