#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Jul 29, 2005 6:50:59 GMT -8
To group the Staff Members and regular Members in the Users Online list, put this in your Main Footer..
<script language=JavaScript> <!-- if(location.href.indexOf('action=headersfooters') == -1) { var members = document.getElementsByTagName('font'); for(t=0; t<members.length; t++) { if(members[t].size == '1' && members[t].innerHTML.match(/Staff Member/)) { var memTot = members[t].innerHTML.split(' '); var tot = parseInt(memTot[0])+parseInt(memTot[3]); if(tot == 1) { var mem = ' Member,'; } else { var mem = ' Members,'; } members[t].innerHTML = tot+mem+members[t].innerHTML.split(/Membe(r|rs),/)[members[t].innerHTML.split(/Membe(r|rs),/).length-1]; } } } // --> </script>
|
|