Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:16
invalid top level menu link
Poster: zbattery
Dated: Wednesday December 11 2002 - 14:28:40 GMT
Greetings!
I have a site I'm working on that I need a little help with a simple problem. I have a slide down Javascript menu that works great, but if you actually click on the top-level menu options it takes you to a blank page (the name of the submenu).
You can see what I'm referencing here:
http://www.advantagesolutions.net/clients/hgs/
So for example, scrolling over "software" brings up the submenu as it is supposed to, but clicking on "software" takes you to "menu_2"
I'd like to have it go to "#" (nowhere), but if I add that to the script than the rolldown doesn't work.
Any ideas?
Here's the definition javascript used on the menu:
http://www.advantagesolutions.net/c...ewmenu_array.js
Any other information needed?
Thanks for any help!
Bryan Noonan
AdvantageSolutions.net
Poster: Kryss
Dated: Wednesday December 11 2002 - 19:16:23 GMT
Hi Bryan,
First, since I cannot tell which version you are using as there is no header info in the array file, make sure you are using the current version of the menu - not the old one from Dynamic Drive. You can get it from: http://www.milonic.co.uk/menu/download.php
Just from a quick cursory of your js file, I think the problem is how you structured the command line.
Your .js file has the structure:
"<b>Software","menu_2",,,1,
Try using something like:
,"Software","show-menu=menu_2",,"",1
This will give you the drop down menu but when they click on the header, nothing.
Hope this helps.
Kryss
Poster: kevin3442
Dated: Thursday December 12 2002 - 6:03:50 GMT
Hi Bryan,
Dude! You're using version 2.6.0. It's from the Stone Age!
OK, kidding aside, 2.6.0 is a little over a year old. There were a lot of changes implemented in 3.2, and even more functionality has been added since (3.5.10 is current). Good news is, you can easily do what you want now (e.g., the syntax that Kryss mentioned will easily do the trick in 3.5.10, but not in 2.6.0). Bad news is, the arrays that define the menus in 2.6.0 are not compatible with the current version (haven't been since 3.2). But there's really not too much editing involved to bring your code in line with the current version's requirements, and it really is worth the effort to gain the increased flexibility and added functionality offered by the latest release.
You can get the latest release here. Please be sure to read the License Agreement! When you got 2.6.0, it was free, and all you had to do was place a link to the Milonic site on the site implementing the menu, and keep all copyright notices in place. Because people were not doing that, there is now a nominal licensing fee for commercial use (I think it's 35 bucks per domain, which ain't a lot to pay, considering what you get, and not having to develop the code yourself. We paid it gladly).
Hope that helps,
Kevin