Recent Questions Struts Tree Menu Examples
Q: How do you center the text within the top-level menu cels in the menu java script?
There doesn't seem to be a setting for it in the tuner. There's a justification option for the sub-menus, but not for the top.
A: Use the following parameter to specify align for the top items:
var itemAlignTop="center";
Q: Thank you for such an excellent product. I have a question pertaining to the submenu items in your tree-menu line. My menus are 540px wide and contain lots of text with good sized pictures (icons). Can I use an iframe tag inside of the css menu submenu instead of simple text with this icon?
A: You are able to paste any html code within items.
So you can paste a form too.
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", "", "", "",],
Q: And another question about displaying the links code in html.
How to create a drop down menu links to be displayed in the html code for search engines to catch them, is that possible?
A: You can use search engine friendly code and install it on yourpage before you call your data file.
You'll see text links in that case.
To create a search engine friendly menu you should add additional html code within your html page:
<div id="dmlinks">
<a href="http://deluxe-menu.com">menu_item_text1</a>
<a href="http://deluxe-tree.com">menu_item_text2</a>
...etc.
</div>
To generate such a code use Deluxe Tuner application.
Run Tuner, load your menu and click Tools/Generate SE-friendly Code (F3)
Q: Is there a way to add an email address as a menu item in the html free menu?
A: You can open any files using JavaScript Tree Menu including PDF files.
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]", ""],