You'll need to pass some info via the URL or cookies to the target page containing the Pagination script to then tell it to run selectpage() with a certain value. The technique for doing this with another script is discussed here: http://www.dynamicdrive.com/forums/s...ad.php?t=24920
In a nutshell though, instead of the default:
Code:
<script type="text/javascript">
var myajaxbook={} //arbitrary variable to hold page settings for this book
myajaxbook.page=["external.htm", "external2.htm", "external3.htm", "external4.htm"]
myajaxbook.selectedpage=0 //set page shown by default (0=1st page)
</script>
You'd have this instead:
Code:
<script type="text/javascript">
var param=window.location.href.match(/selectpage=(\d+)/i)
var paramvalue=RegExp.$1
if (/\d+/i.test(paramvalue)) //if URL parameter contains "?selectpage=integer"
var myajaxbook={} //arbitrary variable to hold page settings for this book
myajaxbook.page=["external.htm", "external2.htm", "external3.htm", "external4.htm"]
var param=window.location.href.match(/selectpage=(\d+)/i)
var paramvalue=RegExp.$1
if (/\d+/i.test(paramvalue)) //if URL parameter contains "?selectpage=integer"
myajaxbook.selectedpage=parseInt(paramvalue)
else
myajaxbook.selectedpage=0 //set page shown by default (0=1st page)
</script>
The link on page A would look something like the below:
Code:
<a href="b.htm?selectpage=1">
Bookmarks