Coloring Book Settings

Within your coloring book file, you can define settings to tell the coloring book what to do when on the first and last pages of the coloring book.

Normally when the first page of the coloring book is shown, you can click the Previous button to go the last  page of the coloring book, and similarly on the last page you can click the Next button to go to the first page.

You can change this activity by adding settings to the coloring book XML file.  Add a settings node to the file, like in the example below...

<book>
<settings beforeFirst="none" afterLast="http://mysite.com/finished.html" />
<page ...>
</book>

There are two settings, beforeFirst and afterLast.

beforeFirst

beforeFirst controls the use of the Previous button when on the first page, as follows...

  • If set to "none" the Previous button is disabled.
  • If not specified, or set to "loop" the Previous button is enabled, and when pressed goes to the last page of the coloring book.
  • Any other value is assumed to be a URL, and when the Previous button is pressed, the coloring book exits to the URL specified.

afterLast

afterLast controls the use of the Next button when on the last page, as follows...

  • If set to "none" the Next button is disabled.
  • If not specified, or set to "loop" the Next button is enabled, and when pressed goes to the first page of the coloring book.
  • Any other value is assumed to be a URL, and when the Next button is pressed, the coloring book exits to the URL specified.