[CB] Highlight Member Group Posts Dec 30, 2010 2:12:04 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by Jordan on Dec 30, 2010 2:12:04 GMT Allows each member group to have a unique background for their posts.Place the group id in the first quotes, and the hex color in the second quotes.If you have more than one group id use the syntax shown in the second example.Global Footers<script type="text/javascript"><!--/* Highlight Member Group Posts Created By Triad support.proboards.com*/var _highlights = [];_highlights[0] = ["1","4080B0"];_highlights[1] = ["(2|3|4)","000000"];var user_highlight = { init: function(){ if(location.href.match(/action=(display|(user)?recent)/i)) this.color(); }, color: function(){ var tr = document.getElementsByTagName("tr"); for(x=4,y=tr.length; x<y; x++){ if(tr[x].cells[0].width == "20%" && tr[x].cells[0].getElementsByTagName("a")[0]){ var a = _highlights.length; var id = tr[x].cells[0].getElementsByTagName("a")[2].className.replace(/group/i,""); while(--a > -1){ if(id.match(_highlights[0])){ for(var td=tr[x].getElementsByTagName("td"),b=0; b<td.length; b++) td.style.backgroundColor = "#" + _highlights[1]; break; } } } } }}.init();//--></script>