Recent Questions Mediawiki Tree Menu Example
Q: How to modify data.js in deluxe menu to change the font color if the user click on css pull down menu.
Expl. If the user click on 'Webdesign' and then on 'Thema Webdesign' the color dosn't change to #333. So the user don't now, where is it. Please test it on www.media-design.ch. Thank!
A: Javascript/DHTML Tree doesn't save a presseditem as it saves a tree state. It works within 1 page only and if youreload the page you should set a pressed item using Javascript API:
function dtreet_ext_setPressedItem (menuInd, itemID)
<script type="text/javascript">
var i = <?php echo $selitem; ?>;
onload=setPressed;
function setPressed()
{
dtreet_ext_setPressedItem(0,dtreet_ext_getItemIDByIndex(0, i));
}
</script>
You should define selitem using server side script.
Q: 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: I have tested your JavaScript Tree Menu Builder and found it easy to work with.
One problem I have is that java menu freeware doesn’t support Swedish letters. When I preview the menu in a browser instead of those specific Swedish letters there are squares.
Could you please inform what I can do? Are there some setting I can change to use Swedish letters?
I am looking forward to hearing from you soonest possible.
A: You're able to use any characters for JavaScript Tree Menu in the same way asyou use them for standard html page.
Unfortunately, you can't use Swedish letters in Deluxe Tuner application.You should manually correct your data file with the menu parameters.
Q: That is what I need:
a) I build a menu with an item like this:
["||"Product1","http://127.0.0.1/product1.htm","","","",,"0",],
b) when I select that item, I need that page product1.htm loads into an iFrame.
Can I do this?
A: You should set the Iframe name as the target value in the menuItems.
You should also set the following parameter:
var itemTarget = "";