Peter
Junior Member
Coding God
Posts: 50
|
Post by Peter on Apr 29, 2006 13:14:01 GMT
<script type="text/javascript"> <!--
// Total viewing in boards shown in info center // Created by Peter
var viewing = { total: 0 };
var iFont = document.getElementsByTagName("font"); var iCell = document.getElementsByTagName("td");
for(f = 0; f < iFont.length; f ++){ if(iFont.item(f).size == "1" && iFont.item(f).innerHTML.match(/ - (\d+) Viewing/)){ viewing.total += parseInt(RegExp.$1); } }
var re = /Total Members: </ var iBr = document.createElement("br"); var iSpan = document.createElement("span");
for(c = 0; c < iCell.length; c ++){ if(iCell.item(c).width == "40%" && iCell.item(c).align == "left" && iCell.item(c).innerHTML.match(re)){ iCell.item(c).firstChild.appendChild(iBr); iCell.item(c).firstChild.appendChild(document.createTextNode("Total Viewing In Boards: ")); iSpan.style.fontWeight = "bold"; iSpan.appendChild(document.createTextNode(viewing.total)); iCell.item(c).firstChild.appendChild(iSpan); } }
//--> </script>
Add to main footer.
This will show the total viewing in boards in the info center.
|
|