Results 1 to 2 of 2

Thread: AnyLink JS Drop Down Menu v2.2 - only first dd works

  1. #1
    Join Date
    Oct 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default AnyLink JS Drop Down Menu v2.2 - only first dd works

    1) Script Title: AnyLink JS Drop Down Menu v2.2

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pmenuindex.htm

    3) Describe problem: I'll start by saying I'm a JS novice and am trying to learn by doing, which is probably the real problem. On this page http://harpercountyherald.com/AMC/index_amc.html why does only one instance of the dropdown work? I have it coded so there should be THREE dropdowns (Rural Health Clinics, Outpatient Specialty Clinics and About AMC should all have dropdowns), but only the first one works. Not sure if I've given enough info, but any help would be much appreciated!

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    The "rel" attribute of each anchor link needs to be set to the variable name that holds the drop down menu contents inside menucontents.js. With that in mind, there is a mismatch in values between the second anchor link's rel attribute and what's specified inside menucontents.js:

    Code:
                <li><a href="#" class="menuanchorclass" rel="outpatientspecialtyclinics">Outpatient Specialty Clinic</a></li>
    The code in red should be "outpatientspecialtyclinic" (without the "s") so it matches up with the variable name defined inside menucontents.js
    DD Admin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •