View Full Version : Switch Content - back/next as trigger?

11-19-2004, 03:15 PM
In the Switch Content script, [ http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm ] how can the dynamic content divs be triggered by a "back" / "next" pair of links/buttons... instead of each div having its own dedicated link?

More detail: I have 20 div blocks of dynamic content to be "switched." But instead of 20 different "trigger" links, I'd like just a simple "back/next" nav that can cycle through the 20 divs, in consecutive order.

I thought maybe somehow replacing "sc1" in the trigger onclick with a variable, like "scX" or "sc[i]" might be the idea, but i couldn't figure out the rest of it.

Any help GREATLY appreciated!
- todd

11-21-2004, 01:48 PM

Linkage to script please.


11-22-2004, 10:59 PM
Unfortunately due to time constraints, we currently cannot help with many customization requests. Have you tried looking at this script instead: http://www.dynamicdrive.com/dynamicindex17/multipartcontent.htm