|
Post by acoolie530 on Feb 20, 2005 22:04:46 GMT
Name: Combine posts and topics Compatibility: Firefox and IE Edit: none Preview: like g101's main page Notes: v1 adds topics and posts and displays them in one column (deletes post and topic columsn). v2 displays "posts: # topics: #" in a new column (deletes post and topic columns)
v1:
<script type='text/javascript'> <!-- //Combine posts and topics v1 by acoolie //Do not redistribute without my permission var td = document.getElementsByTagName("td") for(var f=0;f<td.length;f++){ if(td[f].width=="1%" && td[f+1].width=="1%"){ if(!td[f].className.match("titlebg")){ var post = td[f+1].getElementsByTagName("font")[0].innerHTML; var topic = td[f].getElementsByTagName("font")[0].innerHTML; var total = Math.floor(post)+Math.floor(topic); td[f+1].innerHTML= total } td[f].style.display="none"; } } //--> </script>
v2:
<script type='text/javascript'> <!--
//Combine posts and topics v1 by acoolie //Do not redistribute without my permission
var td = document.getElementsByTagName("td") for(var f=0;f<td.length;f++){ if(td[f].width=="1%" && td[f+1].width=="1%"){ if(!td[f].className.match("titlebg")){ var post = td[f+1].getElementsByTagName("font")[0].innerHTML; var topic = td[f].getElementsByTagName("font")[0].innerHTML; td[f+1].innerHTML = "<span align='left'>Posts: <b>"+post+"</b><br />Topics: <b>"+topic+"</b></span>" td[f-1].width = "55%"; td[f+1].width = "8%"; } td[f].style.display = "none"; } }
//--> </script>
|
|