2

I want to display two pages on a page load so it gives the impression the book is already opened. If for example, I want to start the page display from page 2 & 3 I would use code like this:

 $("#book").turn({page:2});

The above code works while loading the book, but it goes to page1 when I go back from page 2 and 3. Please help me to avoid this problem.

[link to turn.js]

mplungjan
  • 169,008
  • 28
  • 173
  • 236
user969275
  • 284
  • 6
  • 25

1 Answers1

3

I got working by the below code :

$("#book").bind("start", function(event, pageObject) {
        if (pageObject.next == 1) {
                            event.preventDefault();
                            $('#book').turn('page', 2).turn('stop');

                        }
    });
user969275
  • 284
  • 6
  • 25