inherit
Beware the ever changing head
33588
0
Nov 18, 2023 0:32:44 GMT -8
Ross
19,039
November 2004
elindir
|
Post by Ross on Jan 29, 2006 8:25:23 GMT -8
Global FooterThis code will show all pages numbers in the thread listing (rather than the first few and last few) <script type="text/javascript"> <!-- /* show all page numbers in thread listing by ross 101support.proboards.com */ var td = document.getElementsByTagName('td'); if(location.href.match(/board=\w+(&page=\d+)?(&moderationmode=\d)?$/)) { for(i=0; i<td.length; i++) { if(td.item(i).width.match(/^4(3|8)%$/) && td.item(i).innerHTML.match(/\[ Pages: (.+?>(\d+)<\/a>) \]/i)) { var total = parseInt(RegExp.$2.replace(/,/g,'')); var thread = td.item(i).getElementsByTagName('a').item(0).href; var holder = ''; for(l=1; l<=total; l++) { holder += '<a href="'+thread+'&page='+l+'">'+l+'</a>'; if(l < total) holder += ', '; } td.item(i).innerHTML = td.item(i).innerHTML.replace(RegExp.$1, holder) } } } //--> </script>
|
|