In the Switch Content script, [ http://www.dynamicdrive.com/dynamici...tchcontent.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



Reply With Quote


Bookmarks