View Full Version : Switch Content Script

05-27-2005, 02:04 PM
Switch Content Script (http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm)

I've used this script mainly for the Legend menu (on the right side) so far. And it works great.

Now I'm trying to build in the poetry section.

Where the Legend menu switches the content into-- I'd like to have my alphabet index (Aa - Zz) constantly be shown, except when someone hits another content switch (say they hit the Legend's c.f.a.q. link). Which then switches out the alphabet index for the new content, but when they hit clear, to revert back to the alphabet index.

How is this possible?

Working Draft (http://darlingdarkling.clanshosting.com/content/leafletolore/poetry/index.html) of my problem.

I've tried adding
onload="expandcontent(this, 'swpoe0')" but it won't work... any suggestions or help, appreatiated.

Basically I want the 'swpoe0' to be the default shown.

05-27-2005, 03:00 PM
grrr... i knew it would be a simple answer..

Should have worn my glasses 'cause I forgot about adding style="display:block" to the id sc and class contentswitch.

So... nevermind.