Recent Questions Dhtmltree Cross Browser Sample
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: 1) Can any HTML be inserted in to the text?
2) As the item has no link, how can I prevent the item being highlighted on mouseover?
A: 1) Yes, you can insert any html code within menuItems, for example:
["|You can place <b>any HTML code</b><br> to item, for example <u>image</u>:<br><img src=img/logo.gif>","testlink.html"],
["|Index <select style='width:120px;height:17px;font:normal 10px Tahoma,Arial;'><option>Section 1<option>Section 2<option>Section 3</select>", "", "", "", "", "", "", ""],
["|Search <input type=text style='width:80px;height:17px;font:normal 10px Tahoma,Arial;'> <input type=button value='Go' style='width:30px;height:17px;font:normal 10px Tahoma,Arial;'>", "", "", "", "", "", "", "0"],
["|Write Us", "mailto:[email protected]", ""],
2) Yes, you can do it.
You should create Individual Style for it.
For example:
var itemStyles = [
["itemBackColor=#FCEEB0,#FCEEB0","itemBorderColor=,#FCEEB0","fontColor=,#000000"], //style0
];
["Product Info","", "default.files/icon1.gif", "default.files/icon1o.gif", , , "0", , , ], //style0
Q: Does your java menu software work with Dreamweaver MX 2004 on Mac OS X?
A: To create your menu on MAC you can use HTML version of Deluxe Tuner (for MAC OS). You can find it here:
http://deluxe-menu.com/deluxe-tuner-info.html
Unfortunately we don't have html version of the Tuner for Javascript/DHTML Treeand Deluxe Tabs now. We'll try to create it in the nearest future.
JavaScript Tree Menu wasn't developed as Dreamweaver/Frontpage/GoLIveBuilder extension,
BUT you can use it as standard Javascript files. To install the menuinto your html page:
1. open the page in your program
2. open html source code of the page
3. add several rows of code (<script> tags), For info see: http://deluxe-menu.com/installation-info.html
That's all.
To create and configure your menus use Deluxe Tuner application
(included into the trial package): http://deluxe-menu.com/deluxe-tuner-info.html
Q: Hi there ... how do I add in the following javascript code so an exit pop doesn't go off:
onClick="exit=false;"
I read this page, but it didn't work
http://deluxe-menu.com/javascript-link-menu-support.html#
A: Unfortunately, you can't assign onmouseover/onClick event to each item. However, you can achieve this by using standard html objects within items, for example:
var menuitems = [
["<div onClick='your_code_here'>item text</div>", "index.html"]
];