View Full Version : Brain Dead! Can't get dropdown menu to work

05-24-2007, 08:59 PM
Brain Dead! Can't get dropdown menu to work (and I am on muscle relaxers for pulled back Ouch!!!)

I believe it was called Any Menu Drop, and to honest believe it was a CSS & Java combo because it is SE friendly, but I cannot for the life of me to get it to work!

Finally got things all set - but when uploaded, no drop downs. only main links....

can someone please help?:confused:

My test page is http://nipple-huggers.com/thank-you.html Please note this is non piercing body jewelry, so if easily offended - please be warned.


05-25-2007, 05:54 AM
Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

There's 3 errors in your JavaScript code. First:

menu5[2]='<a href="http://nipple-huggers.com/Anthonys-Staff-Stiff.html">Anthony\'s Staff is Stiff...</a>'

You need to add the backslash in ("\"), since your text contains an apostrophe (a reserved word in JS).

Then, look at:

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="http://nipple-huggers.com/LadiesSingles.html">Nipple Dangles I</a>'
menu2[1]='<a href="http://nipple-huggers.com/LadiesSingles1.html">Nipple Dangles II</a>'
menu2[2]='<a href="http://nipple-huggers.com/LadiesSingles2.html">Nipple Dangles III</a>'
menu2[3]='<a href="http://nipple-huggers.com/LadiesSingles3.html">Nipple Dangles IV</a>'
menu2[4]='<a href="http://nipple-huggers.com/LadiesSingles4.html">Nipple Dangles V</a>'
menu2[5]='<a href="http://nipple-huggers.com/LadiesSingles5.html">Nipple Dangles VI</a>'
menu2[6]='<a href="http://nipple-huggers.com/LadiesSingles6.html">Nipple Dangles VII</a>'
menu2[7]='<a href="http://nipple-huggers.com/LadiesSingles7.html">Nipple Dangles VIII</a>'
menu2[8]='<a href="http://nipple-huggers.com/LadiesSingles8.html">Nipple Dangles IX</a>'
menu2[9]='<a href="http://nipple-huggers.com/LadiesSingles9.html">Nipple Dangles X</a>'

//Contents for menu 3, and so on
var menu3=new Array()

You had "menu2" and "menu3" reversed when you defined them. The code in red corrects this.

FYI there's also Anylink CSS menu (http://www.dynamicdrive.com/dynamicindex1/anylinkcss.htm), which lets you define your menu items as plain HTML. Might be easier if you're having a hard time working with JavaScript.

05-25-2007, 03:04 PM
Thank you sooo much! Yes, I did reverse the menu order and I guess I could not see the forest for the trees type thing. sorry for inconvenience & thank you for your patience....

Claudia:o :o