The template emulatesOutlook 2003 look. To open submenus click on menu items. The appearence of this template is determined by the following parameters:
- Toggle-mode support. - Items have icons - Animation effect for subitems - Menu has a static position and is placed within the table cell
- Personal CSS styles for separate menu elements - Unlimited number of sub levels - Items with icons - Relative/Absolute menu position - Filters and Transitional effects - Inactive/Disabled items - Vertical orientation of the Tree Menu - Several menus on one page
Step 1. 1.1 For Windows users a. Run Deluxe Tuner v2.0 (can be found in the trial menu package v2.0 http://deluxe-menu.com/deluxe-menu.zip). b. Open menu data file (.js file where menu parameters are placed): select File/OpenЕ c. Save the file: select File/Save, then click "No" button when the dialog box appears.
1.2 For other OS users a. Open menu data file (.js file where menu parameters are placed) in a text editor. b. Make sure that the following variables exist in the data file:
var keystrokes = 0; var dm_focus = 1; var dm_actKey = 113;
var dynamic = 0; var smHideOnClick = 1; var itemAlignTop = 'left'; var smSmartScroll = 1;
var dmAJAX = 0; var dmAJAXCount = 30; var dmRTL = 0; var dmObjectsCheck = 0; var menuBackRepeat = "repeat"; var menuHeight = ""; var transDuration2 = 200;
If one of the variables doesn't exist - add it at the beginning of the file.
c. Save the file.
Step 3. Replace existent tags of the menu by the following code:
Step 4. Save HTML-page.
Step 5. New engine v2.00 has 7 .js files. They are: - dmenu.js - dmenu4.js - dmenu_add.js - dmenu_dyn.js - dmenu_key.js - dmenu_cf.js (new v2.00) - dmenu_popup.js (new v2.00)
Replace all old .js files by the files from v2.00.
Q: What can I do to optimize the load time for dhtml rollover and prevent reloading it from the server with every page reload.
A:You can try to use AJAX technology.
AJAX-like technology: data for submenus can be loaded "on-the-fly" from the server.
New parameter: var tajax = 0/1; - disables/enables AJAX-like support
Current syntax for item parameters ( var tmenuItems): [text, link, iconNormal, iconOver, iconExpanded, tip, target, itemStyleInd, itemXPStyleInd, jsFileName]
Where jsFileName - .js filename on the server with submenu items ( var tmenuItems).
Q: When i stay on one page so must have the menue-point of the html menu for this page another color or font. How can i make this?
A:You should set pressed item. Please, check the following parameter
This parameter sets an index of an item that will be highlighted by default. -2 - the toggle mode is disabled; -1 - the toggle mode is enabled, but no items highlighted by default; 0,1,2,3,... - index of highlighted item in a top-menu.
function dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion)
Sets a current pressed item. menuInd - index of a menu on a page, >= 0. submenuInd - index of a submenu, >= 0. itemInd - index of an item, >=0. recursion = true/false - highlight parent items.
But notice, to use dm_ext_setPressedItem() you should know ID of selected item and subitem. You can't get this ID after you reload your page. That is why you should write your own code on PHP.
You can also set the correct var pressedItem=1; parameter on each html page.