homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
Forum Library, Charter, Moderator: open

WYSIWYG and Text Code Editors Forum

Help with expand and collapse lists in page content

5+ Year Member

Msg#: 3723856 posted 3:17 pm on Aug 15, 2008 (gmt 0)

Hi there, I'm new to this site and fairly new to web work. I use a WYSIWYG content management system set up by my web development agency to update content in our website, which also lets me edit and update content in an HTML code view.

So I wondered if it is possible for me (using html) to create a long list of links where people can click each link to expand for more information and then collapse the extra information again on a second click.

I know I could get the agency to do this, but then I won't learn anything and they'll charge me a fortune for the privilege! I've spent most of the afternoon browsing forums, but the instructions I've found are either too complicated for me to understand, or I've copied and pasted the code into my CMS and it hasn't worked.

Please can someone treat me as the complete novice I am and tell me if this is even possible to do using a content management system?! And if so, any guidance at all on getting started would be really appreciated!



WebmasterWorld Senior Member 10+ Year Member

Msg#: 3723856 posted 6:44 am on Aug 16, 2008 (gmt 0)

Hi htmlnovice and welcome to WebmasterWorld.

There are several ways to do this, most involving some form of javascript. You can use an onclick event or onmouseover/onmouseout, which I personally prefer. Basically, though, this is a show/hide script regardless of the event trigger.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved