Assuming that's the first one:
Code:
setInterval(function(){mybookinstance.selectpage(0);}, x * 1000);
Where is the instance name for the declaration when you did something like:
Code:
var mybookinstance=new ajaxpageclass.createBook(bookonflowers, "bookcontent", ["paginate-top", "paginate-bottom"])
and x is the number (unquoted) of seconds.
So you would have something like:
Code:
var mybookinstance=new ajaxpageclass.createBook(bookonflowers, "bookcontent", ["paginate-top", "paginate-bottom"]);
setInterval(function(){mybookinstance.selectpage(0);}, 10 * 1000);
Bookmarks