FXsinus.com HOME
The DHTML Menu - reloaded

Global Variables (4.x)

All of the variables below have a default value, except "emptyimage", which is the only mandatory global variable. JavaScript is case-sensitive.

VariableDescriptionExample
emptyimageEmptyimage is mandatory. The internal building structure requires a transparent image. It is important that the path to the image is correct, otherwise rectangles appear above the items in Internet Explorer.emptyimage="transparent.gif";

emptyimage="images/1x1.gif";
showdelayTime delay before submenus are displayed, when you move your mouse over an item with a submenu. Unit is milliseconds (1000 = 1 second). Default value is 0.showdelay=1000;
hidedelayTime delay before submenus are hidden. Unit is milliseconds (1000 = 1 second). Default value is 1000.hidedelay=1400;
zIndexThe "zIndex" of FX Menu starts by default with 500, but is increasing when the menu gets active. If you want to overlap FX Menu permanently with other elements, they should have a z-index at least above 2000.
Increasing the "zIndex" variable is not useful to overlap styled elements, like select boxes, frames, iframes, flash movies, applets, etc. This can be done for each submenu separately with the property "overlap" in the menu properties.
zIndex=500;
hideonpageclickHides all submenus when you left-click an empty area on your page. Boolean variable.hideonpageclick=true;
bodymarginDeprecated. Useful, when you have added a general margin to the body-tag with CSS. "Bodymargin" is necessary to work around browser bugs in Opera 5, Opera 6, Safari, Omniweb and Mac Internet Explorer. Unit is "px". (not supported: bodymargin="3%")

About margin for body in general: If possible, remove the margin from the body - for many browsers have quirks with the margin - by using:

<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

Instead of:

<body>

"Bodymargin" is deprecated, because it's more efficient to use the solution provided above for all browsers.
bodymargin=20;
Home | Forum | Link to us
FXsinus.com - Austria.
Vor der Bruck 15,
A-2770 Goodstone
 © Copyright 2001-2004 FXsinus.com, All Rights Reserved. webmaster@fxsinus.com