PDA

View Full Version : Menu Generator Code - Increasing Number of Menus


jane_bond
12-02-2002, 06:27 PM
OK, I am trying to come up with a better looking alternative to the form-style drop-down menu and since I don't know JavaScript, have found a code generator to do the job for me. Only problem, It only creates 3 menus and it only has 4 items per menu.
So, how can I increase the number of menus without having them conflict, or whatever?

Can I just add more items per menu if I follow the protocol in the other menu items?

Here is a link to the generator I'm using: http://www.searchbliss.com/webmaster_tools/menu_sub.htm

I am not a programmer, and I don't know any Javascripting, so I am having a really hard time trying to figure out how to do this.


Here is an example of one of the three menus I generated:

m[0]='Forms';n[0]='#';sw[0]=120;su[0]='Forms';st[0]="";s[0]=""
+p+"https://url removed"+q+a+"Application for Employment"+r+"Application for Employment"+t
+p+"https://url removed"+q+a+"Business Card Requisition"+r+"Business Card Requisition"+t
+p+"https://url removed"+q+a+"Electronic Data Responsibility Form"+r+"Electronic Data Responsibility Form"+t
+p+"https://url removed"+q+a+"MARKETING / CONTACT REPORT FORM FOR FIELD USE"+r+"MARKETING / CONTACT REPORT FORM FOR FIELD USE"+t

There are two sections of other coding: One before the menus and one after.

I don't know which section is relevant (or perhaps both!) so I am attaching a text file of the complete javascript if anyone can help.

Mr J
12-02-2002, 06:57 PM
I have played around with the script and found that it is possible to have additional menus

Take a look at the file I have attached and look for the following in the script.



m[3]='Additional Data';
n[3]='#';
sw[3]=130;
su[3]='Image Files';
st[3]="";
s[3]=""
+p+"Yourpage1.htm"+q+a+"Statusbar 1"+r+"Data 1"+t
+p+"Yourpage2.htm"+q+a+"Statusbar 2"+r+"Data 2"+t
+p+"Yourpage3.htm"+q+a+"Statusbar 3"+r+"Data 3"+t
+p+"Yourpage4.htm"+q+a+"Statusbar 4"+r+"Data 4"+t
+p+"Yourpage5.htm"+q+a+"Statusbar 5"+r+"Data 5"+t
+p+"Yourpage6.htm"+q+a+"Statusbar 6"+r+"Data 6"+t

jane_bond
12-02-2002, 07:31 PM
Thanks Mr. J!

It is certainly a relief to see that this can be done. I'll have a close look at your file and check the changes...

I am so happy and relieved and thankful!

jane_bond
12-02-2002, 08:24 PM
For clarification: Can I add a new menu as you have done, an unlimited number of times?

I don't have to touch any of the other code?

(sorry - just tired from testing different js codes and finding myself stuck!)

Mr J
12-03-2002, 05:06 PM
Providing the index numbers are sequencial I don't see any problem with adding more menus.

jane_bond
12-03-2002, 05:09 PM
Again, thanks for taking the time to help me out.

I will finish checking out the code limitations tomorrow and let you know...

Jane Bond