I do not think the scroll position could work: every chapter is a new xhtml file, so I got a different value (0) for each page.
I have the same problem when I use a script in a chapter that uses the localstorage.
For example: chapter 1, after a user action, put a "yes" value in locastorage.
Chapter 4, if the value in localstorage is "yes", must use red color for paragraph.
This is working in ADE. But iBooks starts ALL the scripts of ALL the pages when load the ePub the first time. So no way to check the "yes" value in localstorage.
|