Peter
Junior Member
Coding God
Posts: 50
|
Post by Peter on Apr 29, 2006 13:16:37 GMT
<script type="text/javascript"> <!--
// Different board link colors
var iCell = document.getElementsByTagName("td");
function colBoardLink(id, color){ var re = new RegExp("board=" + id,"i"); for(c = 0; c < iCell.length; c ++){ if(iCell.item(c).className == "windowbg2" && iCell.item(c).width == "66%"){ if(iCell.item(c).getElementsByTagName("a").item(0).href.match(re)){ iCell.item(c).getElementsByTagName("a").item(0).style.color = color; } } } }
colBoardLink("BOARD ID", "COLOR"); colBoardLink("BOARD ID", "COLOR");
//--> </script>
Add to main footer.
Just add the board id and the color you want the link to be.
|
|