I’ve heard a number of requests on this list for a way to make an accordion effect where only one element would be open at a time. Click on a different header, and the current element would roll up and the new element would open.
Unfortunately, this isn’t possible when using TransitionFX to build the effect. I also found that whole construction technique to require a lot of clicking and applying of Actions.
So ScriptyAccordion is designed to alleviate both of those pain points in one simple package.
You apply it to the parent HTML box, and tell it what kind of element you are using for the headers and which kind of element you are using for your toggling elements, and whether you want to have only one element showing at any given time or not. That’s all. If you want to add more elements to the accordion, you just add them inline.
For example, you could style up your headers as H3 elements, and your intermediate text as paragraphs. You don’t need to add links to the headers, the script will add the behavior to them automagically. If you wanted to have multiple paragraphs between the headers, then you would need to use a nested DIV as your intermediate text container. Type a header, then at the end of the line, choose Insert > HTML Item. Double-click into that inline box and add your text. Then click into the parent container and add your next header and DIV pair.
http://www.actionsforge.com/actions/view/110-scriptyaccordion
One thing I still need to add is a checkbox to toggle the default view. Currently, it always opens up the first element in the accordion, as a tease. I plan to add a checkbox to turn this off so the accordion is completely collapsed when the page opens.
Walter
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options