ash ♥
[M:-580][M:-580]
Posts: 1,054
|
Post by ash ♥ on Feb 3, 2006 20:52:43 GMT -5
<script> // Alternating Text Colors per post var color1 = "666666"; var color2 = "AAAAAA";
if(location.href.match(/action=display/i)){ var aTD = document.getElementsByTagName("TD"); for(a=0;a<aTD.length;a++){ if(aTD[a].width == "80%" && aTD[a].parentNode.cells[0].width == "20%" && aTD[a].parentNode.cells[0].innerHTML.match(/(Posts: |Guest)/i)){ var newCol = (aTD[a].className == "windowbg2"?color2:color1); aTD[a].firstChild.rows[1].cells[0].getElementsByTagName("FONT")[0].style.color = newCol; } } } </script>
Global or Board Footers
Color1 is for the windowbg cell, color2 is for the windowbg2 cell. This code modifies the text colors for those cells, and only for posts.
|
|