944,113 Members | Top Members by Rank

Ad:
Oct 30th, 2006
0

Text Collapse

Expand Post »
Hello,

I'd like to do something in my site's FAQ section. I'd like people to see the questions, and when clicking them, the answers will appear beneath them. This is done on many sites (I don't have a specific example), but I don't know where to look for such a thing (CSS, JavaScript? etc.) and how to do it.

Any help would be great,

Jonathan
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Crumbs is offline Offline
1 posts
since Oct 2006
Oct 30th, 2006
0

Re: Text Collapse

A combination of CSS and JavaScript. I'll leave you the joy of researching this on your own, with just a few guiding hints: imagine that your FAQ Answers are within DIV elements. Investigate the various "display" settings in CSS. You basically want to toggle from one "display" to another when a link is clicked. That should give you enough to go on.
Last edited by tgreer; Oct 30th, 2006 at 6:11 pm.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: CSS syntax and commands
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: Posting to same page and re-running javascript





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC