Hello - I'm trying to create something like a javascript enabled online book. The idea is that the content of the book is advanced one page when a button is pushed, and decreased one page when the user pushes a different button.
I have the various text "pages" set up in an array - text[1], text[2], etc. The "forward" button will advance the counter i++, and tell text to print into a formatted <div> on the book's page. At least that's the idea.
I'm not sure quite how to go about printing the text into the <div>, and how do develop continuous feedback such that the user can click the "forward" and "backward" buttons multiple times to incrementally or decrimentally scroll through the pages.
Have to admit I can't even get it to print on the same page at this point.
Any ideas? Enormous gratitude for any help!
I have the various text "pages" set up in an array - text[1], text[2], etc. The "forward" button will advance the counter i++, and tell text to print into a formatted <div> on the book's page. At least that's the idea.
I'm not sure quite how to go about printing the text into the <div>, and how do develop continuous feedback such that the user can click the "forward" and "backward" buttons multiple times to incrementally or decrimentally scroll through the pages.
Have to admit I can't even get it to print on the same page at this point.
Any ideas? Enormous gratitude for any help!