Collapsable/expandable FAQ's How to?

  Mysticnas 12:54 18 Jan 2007

Hi all,

I'm trying to figure out how best to create a FAQ's page. I'm quite interested in something like this: click here

The user can expand/collapse the answers individually.

Does anyone know how to implement this in Dreamweaver? Or have the source code?

I've Googled it and found some solutions, but a lot of them are "pay for" samples.

I'd really appreciate it if anyone can help me out here.

Thanks all

  gibbs1984 13:52 18 Jan 2007

Well it's defiantly JavaScript:

<A href="javascript:void(0);" onclick="expandFAQ();">What is your best tire for urban street riding? </A>

Someone maybe able to point you in the direction of some tutorials, sorry I can't be of more help but I only know a little bit of JavaScript.

  cycoze 17:25 18 Jan 2007

i am interested in this too so started having a look around.

Found this Switch Content Script first off click here

Still looking...

  cycoze 17:54 18 Jan 2007

Another that looks a tad tidier click here

Cant find anything that does not require two buttons.

  Mysticnas 17:59 18 Jan 2007

Hi all thanks for that. Shortly after posting i figured i'll snoop around that link i gave earlier. I saved the page and it saved the jsp functions page along with it. All the code is in there!

But these links you have given are quite useful too, thanks again all!!


This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Dell XPS 13 9370 (2018) review

No need to scan sketches into your computer with Moleskine's new smart pen

HomePod review

Streaming : Netflix ou Amazon Prime Video ?