Forum Moderators: phranque

Message Too Old, No Replies

Clicking a link displays a box below it

Something you would use on an FAQ page for example

         

casey133

5:47 pm on May 3, 2006 (gmt 0)

10+ Year Member



I hope this is the right area.

Do anyone know how or have a good resource that will allow for a user to click a link (a question for example), when clicked it will display a box directly below that link that displays the answer, then when the user clicks on another link the previous box will close and the new one will open.

Thanks for any help with this one.

tedster

6:51 pm on May 3, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A common approach is a kind of dhtml (CSS plus JavaScript) - a search on "accordion menu" should turn up code you can adapt.

StupidScript

7:37 pm on May 3, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yep. Most implementations are basically a hidden DIV tag that becomes visible/hidden-again via Javascript when the appropriate link is clicked. Check against any browser you have (MSIE, FF, etc.) as there is some variation in the display characteristics between them.

casey133

4:17 am on May 5, 2006 (gmt 0)

10+ Year Member



Thanks for the help guys. I will post back late Friday with an update or any problems that I may run into that I cant fix myself.

Thanks again.