Recent Questions
Q: I have one final question:-
If you go to http://domain.com/mainboard.asp
And click the tools icon.
My application has 3 types of settings.
Click the line icon (which highlights) then you can use the line tool Then click the thickness icon (which only changes the thickness of the line) And then click the colour icon (which only changes the colour of the line)
Unfortunately, when another icon is selected it resets the original icon.
Is there a way to show one of the top 8 function icons highlighted as well as the selected thickness icon and palette icon all in a selected state together?
A: function dm_ext_changeItem (menuInd, submenuInd, itemInd, iParams)
Changes parameters and an appearance of the item.
menuInd - index of a dropdown javascript menu on a page, >= 0.
submenuInd - index of a submenu, >= 0.
itemInd - index of an item, >=0. See more info about indexes here.
iParams = [array] - the array of item parameters. This parameter has the same structure as an item in menuItems array. You can assign parameters of another existent item of themenu or create new ones.
Structure of iParams:
[item_text, link, icon_normal, icon_over, tip, target, individual_style_index, jsFilename]
You should change icon_normal, icon_over parameters for the items.
http://deluxe-menu.com/functions-info.htmlQ: I have to find out, how the javascript tree control is NOT expanding in the beginning..
A: You should set the following parameter:
var texpanded=0;
Use + signs before items text to expand some items:
["+Land","", "", "", "", "", "", "0", "", "", ],Q: Thanks for swift reply, however:
Tried the dmenu.js (only one we use) at our trial site and get the error :
Line 13
Invalid argument
- as you know this js file is obfuscated to one line, so using a debugger does not apply.
A: See the attached example. I've upgraded your javascript layer menu to Deluxe Menu v3.0.
use data file and engine files from the attachment.
You had several errors in the structure of menuItems.
It is not correct to write
["| Contact us","http://www.imarex.com/home/contact_us","","","","","8","","",],
["||| Energy team","http://www.imarex.com/home/contact_us/energy_team","","","","","8","","",],
You should write:
["| Contact us","http://www.imarex.com/home/contact_us","","","","","8","","",],
["|| Energy team","http://www.imarex.com/home/contact_us/energy_team","","","","","8","","",],
Q: I can not however find the option to move submenus closer together, I have too much ident for my taste.
How can I change that, by hand if that is the only way...
I mean this:
MENU1
+ SUBMENU1
I would like
MENU1
+ SUBMENU1
Is that possible?
A: If you don't want to have icons before item text you can write so:
//------- Icons -------
var ticonWidth = 0;
var ticonHeight = 0;
var ticonAlign = "left";
Your items will be closer to the "+" buttons.