Ross
eCreations Staff
Posts: 1,768
|
Post by Ross on Jul 26, 2005 22:56:23 GMT
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>
|
|