PDA

View Full Version : DD - Contractible Headers script



Helen
01-14-2005, 07:23 PM
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! :)

speedracer
01-14-2005, 11:35 PM
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>

Helen
01-15-2005, 12:09 AM
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. :)