A: You should use the following function:
function dm_ext_changeItem (menuInd, submenuInd, itemInd, iParams)
dm_ext_changeItem(0, 0, 1, ["", "", "new_icon.gif", "new_icon_o.gif", "",,""]);
Q: I'm evaluating a copy of deluxe-tree and have a question about long items. I need to be able to either automatically wrap the line to fit the width given in the tmenuWidth variable or insert line breaks as I see fit.
At the moment I have found that I can insert the <br> tag to force a line to break but it messes up the space after the menu, if I have several one after the other then they will sit close together. If I add a
at the beginning of the menu entry then the space before is bigger than the default.
Is there any easy way around this?
A: Try to set the following parameter:
Q: Is it possible for the dhtml navigation to stay within a table for placement (in order to have a centered website content optimized for 1024x768 - and always have the content centered in the browser regardless of larger resolution sizes, etc.)? so the horizontal placement may vary but the vertical placement would remain the same.
I'm sure it is - but have not had success on implementing it.
A: You can place a menu in a TABLE or DIV with aligh="center".
Q: I have an other question about Vista menus :
If the word is too long, the dhtml menu images are not correct.
Please look at the screenshot.
A: See images in Vista Templates have the fixed width and height (92 x 21).
You can try to use the following parameter to use combinedbackground for your items, for example:
var beforeItemImage = [,]; //left-side image for normal and mouse over state
var itemBackImage = [,]; //background or image for normal and mouse over state
var afterItemImage = [,]; //right-side image for normal and mouse over state
var beforeItemImageW = '';
var afterItemImageW = '';
var beforeItemImageH = '';
var afterItemImageH ='';
But you should create a small images in any Graph Editor, for example: