Recent Questions Javascript Tree Menu Examples
Q: Do the Vista style menus support a separator?
It seems to add some space but the separator line is not drawn.
A: Yes, you can paste a separator in the Vista style menus.
Please, see the following parameters:
//--- Separators
var separatorImage=""; //for subitems
var separatorWidth="5";
var separatorHeight="100%";
var separatorAlignment="right";
var separatorVImage="images/public/separator.gif"; //for the top items
var separatorVWidth="3";
var separatorVHeight="100%";
var separatorPadding="";
You should set a separator in the menuItems, for example:
var menuItems = [
["Home","index.cfm", , , , , , , , ],
["-"],
["About Us","about.cfm", , , , , , , , ],
];
Try that.
Q: Is it possible to create the dhtml scroll with a tilde (over the letter N).it would look like N. I want the menu item to be labeledСSe habla Epanol.
A: You can use any html code within menuItems, for example:
var menuItems = [
["Se habla Epañol","testlink.html", "", "", "", "", "", "", "", ],
Q: Could you please explain how to increase the height of our javascript menu submenu links to 18 or 20 px each?
A: You can create Individual submenu style and assign it to the firstitem in each submenu.
var menuStyles = [
["menuBackColor=transparent","menuBorderWidth=1","itemSpacing=1","itemPadding=0px 5px 0px 5px"],
["itemPadding=5px 2px 5px 2px"],
];
var menuItems = [
["Advanced Taser Guns","http://www.defenseproducts101.com/tasers.html", "", "", "", "", "0", "", "", "", "", ],
["|Advanced Taser Guns","http://www.defenseproducts101.com/tasers.html", "", "", "", "", "", "1", "", "", "", ], //assign style
Q: I'm interested in to buy the product of yours: deluxe-menu. But I've got a dude.
I've been working with the trial version, but I haven't been able to put HTML code within the javascript pop menu Item, in order to do actions like opening a new URL, or opening a file or page with .htm extension.
A: Actually you are able to paste any html code within items.
For example:
var menuItems = [
...
["||<nobr><FORM method=GET action='http://www.google.com/custom'><input name='as_q' value='search
the web' size=15 style='font-size:10'> <INPUT type=hidden name=cof
value='LW:144;L:http://domain.edu/images/sulogo.gif;LH:45;AH:center;GL:0;S:http://domain.edu;AWFID:e01cb67b8afe383e;'> </form></nobr>","", "images/icons/search.gif", "", "", "", "", "2", "", "", "",],
["test","testlink.html","",]
["<a href='testlink.html'> test </a>","","",]