Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Honorary 'Aussie' Mechanic
Picture of postyr
Posted
I can’t seem to find the thread now, but quite some time back, someone asked the question as to how to create an FAQ style of questions and answers where the answers will expand under the questions and force down the objects below it.

Well, I have managed to tweak some code I came across to accomplish this. It is a mixture of HTML, CSS and javascript.

Whilst it won’t force down other Site Spinner objects on the page below, it will expand the items within the code object itself. I have also set each expanded answer to collapse when clicking on a different question.

That way, you only need to leave enough room below the code object to accommodate for the largest answer.

The procedure could also be used to create a custom menu.

I have quickly thrown together a quick example of how it works, and the code used to do it here

I am heading off early in the morning for a long overdue holiday, so if anyone has any comments or questions, please be patient for a couple of weeks until I get back.

Terry

This message has been edited. Last edited by: postyr,
 
Posts: 1162 | Location: Australia | Registered: April 17, 2007Reply With QuoteEdit or Delete MessageReport This Post
Guru 'Geezer' Mechanic
Picture of larryd
Posted Hide Post
I think the thread you were looking for is here.
 
Posts: 5134 | Registered: December 03, 2006Reply With QuoteEdit or Delete MessageReport This Post
Junior Mechanic
Picture of O 2 B Max
Posted Hide Post
Thanks Larryd I was able to use the link and create a Q&A that took up much less real estate and looked better too.


O 2 B Max
 
Posts: 3 | Registered: May 12, 2009Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 


™ & © 1998 - 2008, Virtual Mechanics Inc. All rights reserved.