iAlex
Junior Member
Posts: 73
|
Post by iAlex on Dec 20, 2007 3:36:48 GMT -5
This code will allow you to change color of the actual posts made by staff members. Just to make them stand out more. Edit the red text with the desired colour for your staff's posts.
Global Footer.
Cross Browser.
Open Source.
<script type="text/javascript"> <!--
/*Highlight posts by staff - By iAlex - Open Source*/
var iBackColor="Colour"; //Hex Color of Staff Posts
var iStaff=/group(1|2|3)$/ if(location.href.match(/action=(display|viewprofile|recent|calendar|search|pmview|user)/) || location.href.match(/index.cgi$/) && document.title.match(/Preview/) && document.postForm){ var iTd=document.getElementsByTagName('td') for(i=0;i<iTd.length;i++){ if(iTd.item(i).width=="20%" && iTd.item(i).vAlign=="top" && iTd.item(i).className.match(/windowbg(2)?/) && iTd.item(i).innerHTML.match(/member is/) && iTd.item(i).height=="100%" && iTd.item(i).getElementsByTagName('a').item(1).className.match(iStaff)){ var iColor=iTd.item(i).parentNode.getElementsByTagName('td'); for(a=0;a<iColor.length;a++){ iColor.item(a).style.backgroundColor=iBackColor } } } }
//--> </script>
|
|