Paging.js
var TotalRecords;
function init(){
TotalRecords = xmldso.recordset.recordcount;
myTable.onreadystatechange = currentPage;
currentPage();
}
function currentPage(){
if (myTable.readyState == "complete") {
var currentRecord = myTable.rows[0].recordNumber;
Paging.innerHTML = currentRecord + " of " + TotalRecords;
}
}
function nextRec(){
myTable.nextPage();
}
function prevRec(){
myTable.previousPage();
}
// NEXT SECTION IS THE HTML STUFF!
<DIV class=menu>
<TABLE class=menu width="100%">
<TR>
<TD class=menu><SPAN onclick=nextRec()
title="Go to next record">Next</SPAN></TD>
<TD class=menu colSpan=2><SPAN onclick=prevRec()
title="Go to previous record">Previous</SPAN></TD>
<TD><SPAN id=Paging></DIV></TD>
</TR>
</TABLE>
</DIV>