|
Post by Wormopolis on May 9, 2009 17:39:56 GMT -8
Browser tested: IE and FF placement: global or board footer
Allows you to change the subject text color for individual users.
code:
<script type="text/javascript"> <!-- // subject color change for individual user // by Wormopolis - wormocode.proboards.com // keep header intact
userArray=[ ["admin","FF0000"], ["user2","color"], ["user3","color"] //no comma last line ];
// no need to edit below.
for (tds=document.getElementsByTagName('td'), i=0; i<tds.length; i++) { if (tds[i].width.match(/4(3|8)%/) && tds[i].className=="windowbg" && tds[i].firstChild) { if (tds[i].firstChild.nextSibling && tds[i].firstChild.nextSibling.firstChild && tds[i].firstChild.nextSibling.firstChild.firstChild ) { if (tds[i].nextSibling.getElementsByTagName('a')) { for (a=0;a<userArray.length;a++) { if (tds[i].nextSibling.getElementsByTagName('a')[0].href.match(userArray[a][0])) { tds[i].firstChild.nextSibling.firstChild.firstChild.style.color=userArray[a][1]; break; } } } } } } // --> </script>
Preview: General board of this site.
|
|