PDA

View Full Version : AnyLink Drop Down menu help (again)



Wizard13335
09-16-2005, 05:09 AM
code:AnyLink Drop Down Menu
link:http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

When i create the code for a possible third menu, an look to see what i've done, there is a javascript error saying that "menu3" is undefined. As far as i know, at least 1 other person has this problem. If you would like me to post the code, please say so. thanks for any help

edit: nvm i fixed it. I had to go through a bit of script, but it worked. Sorry for taking up space with this thread.

demtro
09-23-2005, 11:51 PM
Below is a sample of the meny on my site. If you notice evertime you add a menu you have to adjust the menu number 1, 2, 3 etc


//Contents for Home
var menu1=new Array()
menu1[0]='<a href="http://jan.ourfamilygenealogy.com">Jans Family History</a>'
menu1[1]='<a href="http://king.ourfamilygenealogy.org">King Family History</a>'

//Contents for Surnames A-G
var menu2=new Array()
menu2[0]='<a href="../Surnames/alquire.htm">Alquire</a>'
menu2[1]='<a href="../Surnames/baker.htm">Baker</a>'
menu2[2]='<a href="../Surnames/baranowski.htm">Baranowski</a>'
menu2[3]='<a href="../Surnames/barbaro.htm">Barbaro<a>'


//Contents for Surnames H-M
var menu3=new Array()
menu3[0]='<a href="../Surnames/king.htm">King</a>'
menu3[1]='<a href="../Surnames/iversen.htm">Iversen</a>'

//Contents for Surnames N-T
var menu4=new Array()
menu4[0]='<a href="../Surnames/king.htm">King</a>'
menu4[1]='<a href="../Surnames/iversen.htm">Iversen</a>'

//Contents for Surnames U-Z
var menu5=new Array()
menu5[0]='<a href="../Surnames/king.htm">King</a>'
menu5[1]='<a href="../Surnames/iversen.htm">Iversen</a>'