Click to See Complete Forum and Search --> : ToolBar Menu
djgaston
02-21-2003, 05:05 PM
Hey, on the JavaScript.internet.com site, there is a ToolBar Menu that I really would like to use. I can't get it to work. There are only two lines of code to put into the body of the web page, and they refer to ".js" files. I'm guessing that I need these files on my server, but I don't know how to make them or where to get them. I'm new at JavaScript, but am picking it up really quickly.
Here is the link to the page:
http://javascript.internet.com/navigation/toolbar-menu.html
If you guys can help me out, I would really appreciate it. I love the way this menu works and looks and it's getting frustrating to not be able to use it.
Thanks!
djgaston
02-21-2003, 05:07 PM
script type='text/javascript' src='nwrmenu_var.js'></script
script type='text/javascript' src='menu_com.js'></script
That is the code that is listed for the body of the page. How would I setup "nwrmenu_var.js" and "menu_com.js"? Thanks again.
Pixelchik
02-21-2003, 05:42 PM
Here is where you get the files you need. You can thank Khaki for these!
http://javascript.internet.com/navigation/menu_com.js
http://javascript.internet.com/navi.../nwrmenu_var.js
djgaston
02-21-2003, 05:45 PM
Thanks Khaki and PixelChick. I appreciate it!
djgaston
02-23-2003, 03:28 PM
Okay, I got the files loaded on my server and the existing menu works fine on my site. However, when I start changing the menu items and deleting sub menus, the menu will not load. I'm guessing I have to change something somewhere else but am not sure what to look for. The menu_com.js file is 11 pages long. Any tips on what to look for?
Everything is fine as long as I only change text. But when I go to take out sub menus, it all quits working and won't load at all.
Thanks!
Pixelchik
02-24-2003, 10:11 AM
Hi,
Yes I had a similar experience with it too. Be carefull when you are deleting or adding the menus (i.e. Menu2_1=new Array) that you also change the number at the head of each menu section (for example: Menu2=new Array("About Us","","",4); the number 4 indicates how many new arrays you have total in the particular menu or submenu. Check all of your menus and submenus tomake sure you have the correct number for each and that all the menus have been numbered correctly i.e.
Menu2_1=new array......
Menu2_2=new array...
Menu2_3=new array...
same for the submenus.
Hope this helps you!!
djgaston
02-24-2003, 01:27 PM
Pixelchik-
You are the greatest ever. Thank you so much for your help. It took me a few tries but I got everything worked out. I figured out also that after the number 4 in your example, you can additionally put a ( ,20,120 ) or whatever to set your height and width in that order. I didn't know what those numbers were at first.
Thanks again for your help!