Recent Questions Javascript Framework Prototype Tree Menu
Q: I have a top horizontal menu with one level sub-menus.
I am using images for the rollover (on & off). I don’t need the generated text on the main menu, only on the submenus.
??? How do I eliminate the text and only have roll-overs?
A: You should delete item's text:
["","testlink.html", "image.gif", "imageo.gif", "", "", "", "", "", ],
Q: Hello. I am trying to test out your mouse over drop down menu and I am having trouble using the separators. Are there certain things that need to be in placed for the separators to work?
Nothing in the js code is showing me that they even exist.
A: You should set a separator in the menuItems, for example:
var menuItems = [
["Home","index.cfm", , , , , , , , ],
["-"],
["About Us","about.cfm", , , , , , , , ],
];
Please, see the following parameters:
//--- Separators
var separatorImage=""; //for subitems
var separatorWidth="100%";
var separatorHeight="3px";
var separatorAlignment="right";
var separatorVImage="images/public/separator.gif"; //for the top items
var separatorVWidth="100%";
var separatorVHeight="2px";
var separatorPadding="";
Q: Can I use a menu java scrip Item for text and get the text to wrap within a predefined menuWidth?
A: You should set the following menu java scrip parameter:
var noWrap = 0;
or use <br> tags within menuItems.
Q: Is it possible to use more than one Menu in one Site, for example with
<script type="text/javascript"> var dmWorkPath1 = "menue/produkt.files/";</script>
<script type="text/javascript" src="menue/produkt.files/dmenu.js"></script>
<script type="text/javascript"> var dmWorkPath2 = "menue/navigation.files/";</script>
<script type="text/javascript" src="menue/navigation.files/dmenu.js"></script>
unfortunately this syntax doesnґt work
A: You can use as many menus as you want on the one page.
But you should call dmWorkPath parameter and dmenu.js file only onceon the one page.
You cannot write dmWorkPath1 and dmWorkPath2. Youir menu won't workcorrectly in that case.
You should write
<!-- JavaScript Tree Menu -->
<noscript><a href="http://deluxe-menu.com">Javascript Menu by Deluxe-Menu.com</a></noscript>
<script type="text/javascript"> var dmWorkPath = "menudir/";</script>
<script type="text/javascript" src="menudir/dmenu.js"></script>
<!-- (c) 2007, http://deluxe-menu.com -->
and call several data files:
<script type="text/javascript" src="menudir/data1.js"></script>
...
<script type="text/javascript" src="menudir/data2.js"></script>
...
<script type="text/javascript" src="menudir/data3.js"></script>