View Full Version : onclick jawascript

03-17-2009, 12:05 PM
Hello guys,

I need a onliclick jawascript code like this ;


When you click the second line, first lines answer is closing and opening second lines answer.

live demo here (http://imtbike.com/faq.asp)

Any idea, how can i make the similar ?

Thanks ...

03-17-2009, 12:07 PM
Check out this (http://css-tricks.com/new-screencast-a-lesson-learned-in-accessibility/) screen cast.

03-17-2009, 01:08 PM
After little search, i figured that actually i was looking for " dynamic faq".
I found some softwares but they are not for free.
Does anyone know where can i get this code for free?

Thanks alot.

03-17-2009, 05:16 PM
its not that hard to implement these kind of faq pages..
jst need little javascript..
use the <DL> u take questions in Questions in DT n answers in DD..

n set the display none to DD... use script to make its display to block
got it..

03-17-2009, 07:36 PM
maybe this (http://www.willmaster.com/blog/css/show-hide-div-layer.php) or something i made awhile back: http://dynamicdrive.com/forums/showthread.php?t=27836

03-20-2009, 09:58 PM
Thanks alot for the great tips;)

03-20-2009, 10:39 PM
You're welcome, glad I could help! :)