PDA

View Full Version : Expandable Content



TwistedLogic
04-25-2005, 11:47 PM
Iím looking for a code that does the following:

Before click it looks like a list of links.

Cadet Officer School
National Blue Beret
National Flight Academy

After the first click a description appears below the phrase and indented

Cadet Officer School
<<indent>>The Cadet Officer School, held annually in Alabama yadda, yadda, yadda
National Blue Beret
National Flight Academy

After the second click the description disappears and the list looks like it did before it was clicked on.

Cadet Officer School
National Blue Beret
National Flight Academy


I think it would be a DHTML code but I canít find it. Does anyone know where I can find this or request a code that does this? Let me know if my description is unclear.

Thanks for any help.

shal187
04-28-2005, 01:16 PM
yea hey there, ive found a way to do that, took forever but finally found a script... but on the other hand i had to rip the script apart to be able to go more than one level deep... perhaps if you are better a JS than me or if anyone can tell me how to hide ALL the other items except the current one... would be much appreciated...

here is the link to the script that does what your looking for btw

http://www.dynamicdrive.com/dynamicindex17/switchcontent_dev.htm

TwistedLogic
04-28-2005, 11:30 PM
Sweet, thanks a ton.