J
|
Jane 5/21/2008 |
Stephan, |
M
|
mmponline author 7/21/2008 |
Not sure where to change this code. Wnhen clicking next, it must go to the next page. When clicking previous, to the previous page. At the moment it goes to the next group of 10 pages. {
|
J
|
Jane 7/22/2008 |
Here is a sample: if (maxpages > 1 && mypage <= maxpages) { document.write("<table rows='1' cols='1' align='center' width='95%' border='0'>"); document.write("<tr valign='center'><td align='center'>"); var counterstart = mypage - 1; //if (mypage%10) counterstart = mypage - (mypage%10) + 1; var counterend = counterstart + 1; if (counterend > maxpages) counterend = maxpages; if (counterstart != 1) document.write(GetGotoPageUrlString(1,TEXT_FIRST)+" : "+GetGotoPageUrlString(counterstart ,TEXT_PREVIOUS)+" "); document.write("<b>[</b>"); var pad=""; var counter = counterstart; for(;counter<=counterend+5;counter++) { if (counter != mypage) document.write(" " + GetGotoPageUrlString(counter,pad + counter)); else document.write(" <b>" + pad + counter + "</b>"); } document.write(" <b>]</b>"); if (counterend != maxpages) document.write(" " + GetGotoPageUrlString (counterend + 1,TEXT_NEXT) + " : " + GetGotoPageUrlString(maxpages,TEXT_LAST)) document.write("</td></tr></table>"); } |
M
|
mmponline author 7/25/2008 |
Works fine. For some reason it's just showing a page 0 as well. Don't know why? |