Results 1 to 3 of 3

Thread: DD - Contractible Headers script

  1. #1
    Join Date
    Jan 2005
    Location
    Florida
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DD - Contractible Headers script

    http://www.dynamicdrive.com/dynamicindex1/navigate2.htm

    I have this working fine, but I want to add more contractible headers than
    just the 3 in the demo script. As you can see in this page, the first 3 work
    fine; the second 3 just seem to link to the first 3.

    http://rightstuffhosting.com/Support_Desk.html

    Is that possible to do? What code change do I need to do to make it happen?

    This is perfect to "remodel" my FAQs page but I'm not so good on scripts yet
    and I really need to get this working, or would appreciate suggestions for a
    similar script DD might have to do this with if I missed one.

    Many thanks for any help!

  2. #2
    Join Date
    Jan 2005
    Location
    Seattle
    Posts
    53
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    well, you can't use the same id. you have sc1,sc2,sc3 so next number you have to use is sc4 and so on.

    the fourth one should be like this:

    <h3 onClick="expandcontent('sc4')" style="cursor:hand; cursor:pointer">What is JavaScript?</h3>
    <div id="sc4" class="switchcontent">
    JavaScript is a scripting language originally developed by Netscape to add interactivity and power to web documents. It is purely client side, and runs completely on the client's browser and computer. </h3>
    </div>

  3. #3
    Join Date
    Jan 2005
    Location
    Florida
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you soooooo much!!!

    It is amazing how such a small thing can cause a big problem. I looked everywhere
    (else) to try to figure out what part of the head code was limiting it to 3 headers, lol.

    I am so happy! Thanks again.

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
  •