This Message Forum is no longer in use

Please use the new Bravenet Help Forums FOUND HERE

General Forum
This Forum is Locked
Author
Comment
expand and collapse content

I would like to know how you expand and collapse content on a page. I am working with a lot of text in a small amount of space and would like to be able to expand and collapse text under titles.

Re: expand and collapse content

Collapsing/Expanding content is usually handled with Javascript. The usual method is to wrap the content you want to collapse in a named "div", and then use Javascript to toggle it's visibility. The overall idea is pretty simple but many available scripts tend to complicate things with some special effects. Try the following links for ideas on how to manage your content. The overall scripting is pretty simple, so you can customize it the way you want.

Accordion Content script (v1.7)

Animated Collapsible DIV v2.4

Browser: Firefox, Netscape, Sea Monkey, Internet Explorer, .....

OS: Solaris (Sparc,x86), Linux, XP

Re: expand and collapse content

Thank you this is very useful and I am certain will help.