View Full Version : Switch Content Script with Icon & Text link?

03-02-2009, 01:55 AM
1) Script Title: Switch Content Script II

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/switchcontent2.htm

3) Describe problem: Simple text link as well? Rollover state etc.


I'm new to javascript and for the life of me i can't figure out how i could add a text link, that undlerlines when rolled over, that will expand/collapse the particular faq message it is the title for.

Is there some way to call the function from a link? Similar to what is used for the Contract All/Expand All buttons?

I already have the icons working great, i just would like to be able to add this functionality to a text link.

Thank you for your help and the script!

03-02-2009, 03:12 AM
go to http://www.dynamicdrive.com/dynamicindex17/switchcontent2.htm and scroll down to the bottom of the documentation.

03-02-2009, 03:33 AM
I'm not seeing anything i haven't read before.

It explains how to create an expand and collapse ALL link which i referred to in my post.

I want to be able to make text links for each individual faq section that just expand it like pushing the +/- icon does.

Am i missing something?

03-02-2009, 05:47 AM
I just used the accordion script instead thanks.