Recent Questions Tree Menu Using Java Script
Q: We create the menu code via ASP, and we need to have 2 menus on one page. Normally you do this by having 2 java scripts includes.
However it looks like the bottom menu activates the first menu?
A: Now you have two entries of dmenu.js file on your site in the tag.
You must have only one entry of dmenu.js file.
You should write so:
...
<head>
<!-- JavaScript Tree Menu -->
<noscript><a href="http://deluxe-menu.com">Javascript Menu by Deluxe-Menu.com</a></noscript>
<script type="text/javascript"> var dmWorkPath = "menu2.files/";</script>
<script type="text/javascript" src="menu2.files/dmenu.js"></script>
<!-- (c) 2006, by Deluxe-Menu.com -->
</head>
Please, delete the same code from the tag.
Q: We had a strange problem with the menus when the sub menus are over applet in https: the applet disappeared.
After doing some Investigation in your code we noticed that you are using in HTTPS mode div instead of Iframe.
We would be happy if you can tell us why you are using div in this mode and if we will use http mode will it cause something that can affect the menus
A: Iframes don't work on https:// websites. You'll get warning message. That's why we're using <div> tag.If for some reasons a submenu can't drop down over an object the latterwill be hidden for a time when the submenu is shown.
If you use JavaScript Tree Menu on https:// website, submenus won't drop downover select boxes within iframe objects. It works fine on a non-secureservers only.
Q: How to set the icon vertically top when the menu in dhtml text is wrapped?
A: Unfortunately it is not possible to align icon vertically now.
But you can do it using html code within menu in dhtml items, for example:
var menuItems = [
["<img src='deluxe-menu.files/orangeDot.jpg' style='border: 0 none;'> Home","testlink.html", "", "", "", "", "", "", "", "", "", ],
["<img src='deluxe-menu.files/orangeDot.jpg' style='border: 0 none;'> Product Info hgdgfjh aaaaaaaaa aaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaa aaaa","", "", "", "", "", "", "", "", "", "", ],
Q: I was wondering how do i add more then five items on the top of the select menu javascript rathere then using a sub menu?
A: Actually you can add as many top items as you want.
Use Deluxe Tuner to add more items or add them in your data filemanually, for example:
var menuItems = [
["Item 1","whatsnew.htm", "Buttons/whatsnewup.jpg", "Buttons/whatsnewover.jpg", "", "", "", "", "", "", "", ],
["Item 2","test.htm", "", "", "", "", "", "", "", "", "", ],
["Item 3","index.htm", "Buttons/homeup.jpg", "Buttons/homeover.jpg", "", "_parent", "", "", "", "", "", ],
["Item 4","about.htm", "Buttons/aboutup.jpg", "Buttons/aboutover.jpg", "", "_parent", "", "", "", "", "", ],
["Item 5","commserv.htm", "buttons/commservup.jpg", "buttons/commservover.jpg", "", "_parent", "", "", "", "", "", ],
["Item 6","conference.htm", "buttons/conferenceup.jpg", "buttons/conferenceover.jpg", "", "_parent", "", "", "", "", "", ],
["Item 7","lodges.htm", "buttons/districtsup.jpg", "", "", "_parent", "", "", "", "", "", ],