Recent Questions Treegrid Ext 2 2
Q: Does your product support image swapping? For instance, if I was building a menu such as the one on your site, how would I swap the "Home", "Product Info", etc images/gif's?
I'm using a JavaScript such as the one below:
<a href="index.html"><img src="images/btn_home_up.gif" name="Image1" width="91" height="33" border="0" id="Image1" onmouseover="MM_swapImage('Image1','','images/btn_home_roll.gif',1)" onmouseout="MM_swapImgRestore()" /></a>
A: You can use images for items using standard <img> tag.
But in this case you should change pictures yourselves usingJavascript to make rollover items.
For example:
var menuItems = [
["<img src='image1.gif' width=100 height=20 onmouseover='this.src=\"image2.gif\" onmouseout='this.src=\"image1.gif\"'>Text", link,]
];
or
var menuItems = [
["<img src='image.gif' onmouseover='changeImage(this, 1)' onmouseout='changeImage(this, 0)'>"]
];
Q: Is there a way to expand only the menus and not the submenus in the collapse tree menu?
A: You can set expanded items by default.
If you want to expand specific items by default you should set "+"symbol at the beginning of item text.
["+Javascript/DHTML Tree: XP Style","", "default.files/xpicon1_s.gif", "", "", "XP Title Tip", "", "0", "", ],
// this item is expanded by default
["|Home","testlink.htm", "default.files/icon1_s.gif", "default.files/icon1_so.gif", "", "Home Page Tip", "framename", "", "", ],
["|Product Info","", "default.files/icon2_s.gif", "default.files/icon2_so.gif", "", "Product Info Tip", "", "", "", ],
// this subitem is not expanded by default
Q: I'm trying to sell a client on using JavaScript Tree Menu but one complaint is that the text is not centered in the menu pad and I can't find a function in Deluxe Tuner which allows for centering.
I've downloaded the latest version but it didn't help.
A: You should set the following parameter to center your top items:
var itemAlignTop="center";
Q: I am interested in purchasing your product for use in my company's website code. My clients are not tech-savy, and I do not want to include any code that will generate concern or problems on the user end.
Is there a way to use the JavaScript menus without generating the warning as mentioned in the subject? I know how to allow the active content on my web browser, but I want code that will not require such actions on their browsers.
A: Thanks for your interest in our products.
Your clients should check browser settings.
Unfortunately, we can't affect on the browser behavior in this case.