Graphics accordion?

I’m looking to use all graphics in a horizontal scripty accordion but am stuck. I’ve built the all text style as per this - ScriptyAccordion - no problems. The action however seems to depend on the items having text - so styles can be applied in order to work. If I use only graphics boxes, I can’t figure out how to make it work.

“This style can only be applied to text”

A sample of what I’m looking to achieve here - Dynamic Drive DHTML Scripts- Horizontal Accordion script

I’ve also tried just substituting one text paragraph for a graphic and it breaks as well. I’m probably missing something, but not sure what…any clues? Thanks!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I should add - the graphics don’t hide even in a simple vertical test either.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I too would be interested in this tutorial!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

If you need to alternate between graphic headers and graphic bodies in your accordion, then you need to put one set inside DIVs and the other set not. Try this:

  1. Draw an HTML box on the page, apply the ScriptyAccordion Action to it, check the “animate horizontally” checkbox, then double-click inside the HTML box to get a text cursor.

  2. From the main menu: Insert / Graphic Item, then Insert / HTML Item. You should have two boxes, one above the other.

  3. Set both boxes to Align (or Float) Left using the Inspector.

  4. Double-click inside the second (HTML) box. Inside that, insert an inline graphic box.

  5. Repeat steps 2 - 4 for each additional pair.

Now, back at the Actions palette, you should be able to set the Trigger element to ‘img’ and the Show/Hide element to ‘div’.

The graphics that are wrapped in a DIV (inline HTML box) will show and hide when you mouse over or click their respective inline graphic “headers”. When their parent DIV is hidden, they hide as well.

By the way, don’t spend much time worrying about how it looks in design view (kinda like a drunken staircase) along the top of the elements. The Action sorts this out, removing stray paragraph spacing within the HTML box that it’s applied to.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options