Cr0w
Junior Member
Posts: 47
|
Post by Cr0w on Sept 1, 2006 19:11:48 GMT
Explanation: I saw this code on another forum way back in February, and after hours of serching, and being unable to find the forum, i decided to make it myself. What this code does is it removes the "Posts" coloumn, and combines it with the "Topics" coloumn. Previews: ClickityCompatibility: CrossBrowser Add To: Global Footers. Instructions: Editting is in code itself. <script type="text/javascript"> <!-- //Remodel Board Stats by Cr0w //Copyright 2006 //Do not repost without permission
//Variables var textPos="center" //Alignment of "Threads" and "Posts"(left, right, or center) var fontClr="000000" //Type in the color you want the text to be
//Do Not Edit Below var td= document.getElementsByTagName("td"); for(t=0;t<td.length;t++){ if(td[t].innerHTML.match(/Posts/) && td[t].width=="1%"){ td[t].style.display="none"; td[t-1].innerHTML = "Board Stats"; } } for(u=0;u<td.length;u++){ if(td[u].colSpan=="5" && !location.href.match(/action=pm/)){ td[u].colSpan="4"; } } for(v=0;v<td.length;v++){ if(td[v].width=="66%" && td[v].className=="windowbg2" && td[v].vAlign=="top" && td[v].align=="left"){ var ThreadNum = td[v+1].innerHTML; var PostNum = td[v+2].innerHTML; td[v+1].innerHTML = '<div align="'+textPos+'"><font color="'+fontClr+'"><b>Threads: </b>'+ThreadNum+'<br /><b>Posts: </b>'+PostNum+'</font></div>'; td[v+2].style.display="none"; td[v+1].width="11%" } } //--> </script>
|
|