|
Post by Ross on Jan 29, 2006 11:25:10 GMT -5
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>
|
|