Recent Questions Wpf Treeview Itemcontainerstyle Selecteditem StyleQ: Is it possible to designate a different font style, for thedrop down links then for the main link in the asp drop down menu?
A: Yes it is possible. It will be better for you to use another font style for your top itemsusing Individual styles.
And change font styles for your submenus using the following parameters:
var fontStyle=["bold 10px Tahoma","bold 10px Tahoma"];
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?
<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.
var menuItems = [
["<img src='image1.gif' width=100 height=20 onmouseover='this.src=\"image2.gif\" onmouseout='this.src=\"image1.gif\"'>Text", link,]
var menuItems = [
["<img src='image.gif' onmouseover='changeImage(this, 1)' onmouseout='changeImage(this, 0)'>"]
Q: I've downloaded and installed the trial software and have built the example that came with it.
What I would like to do is make the sub items ("New Sample 1" - "New Sample 5") display when the user clicks "Sample Block 1", rather than having to click the little + sign next to it.
A: You should set the following parameter:
Q: How do your users normally indicate which page a web visitor is on, by using your navigation bar submenu?
Try to do the following things:
- delete var pressedItem=1; parameter from your data file
- set correct parameter on each page before you call data file, for
function dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion)
Sets a current pressed item.
menuInd - index of a menu on a page, >= 0.
submenuInd - index of a submenu, >= 0.
itemInd - index of an item, >=0.
recursion = true/false - highlight parent items.
But notice, to use dm_ext_setPressedItem() you should know ID of selected item and subitem.
You can't get this ID after you reload your page. That is why you should write your own code on PHP.