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 Jul 23, 2005 16:59:27 GMT -8
Main FooterThis will add total categories, total boards and number of sub-boards to the info center Preview: <script type="text/javascript"> <!-- /*extra info center stats by elindir v1.0 101support.proboards43.com do not edit or repost without permission*/ var subs=0; var cat=0; var board=0; var f=document.getElementsByTagName("font"); var td=document.getElementsByTagName("td"); for(e=0;e<f.length;e++){ if(f[e].size == "1" && f[e].innerHTML.match(/\((\d+) sub/)){ subs+= parseInt(RegExp.$1);}} for(r=0;r<td.length;r++){ if(td[r].className=="catbg" && td[r].colSpan=="5" && td[r].innerHTML.match(/name/)){ cat++} if(td[r].className=="windowbg2" && td[r].width=="66%" && td[r].innerHTML.match(/board=/)){ board++} if(td[r].innerHTML.match(/Total Topics:/) && td[r].width=="60%" && td[r].vAlign=="top"){ td[r].width=""; var iCell=td[r].parentNode.insertCell(0); iCell.innerHTML='<font size="1">Total Categories: '+cat+'<br/>Total Boards: '+board+'<br/>Total Sub-Boards: '+subs+'</font>'; }} //--> </script>
|
|