inherit
93369
0
Jul 28, 2011 3:17:13 GMT -8
Quilford
Nobody's perfect. I'm nobody.
248
November 2006
steynj
|
Post by Quilford on Oct 23, 2010 1:24:10 GMT -8
<script type="text/javascript"> <!-- // custom classes for PM page // edit the parts in double quotation marks // then create CSS rules for the classes // by Quilford (you may remove this line)
var td = document.getElementsByTagName("td"); if(location.href.match(/action=pm/)){ for(a=td.length-1;a>=0;a--){ if(td[a].innerHTML.match(/Status/i)){ // NO EDITING ABOVE HERE // If you want the tr itself to have a class td[a].parentNode.className = "pmbar"; // Checkbox cell td[a].parentNode.firstChild.className = "pmcell"; // 'Status' cell td[a].className = "pmcell"; // 'Subject' cell td[a].parentNode.firstChild.nextSibling.nextSibling.className = "pmcell"; // 'From' cell td[a].parentNode.firstChild.nextSibling.nextSibling.nextSibling.className = "pmcell"; // 'Date' cell td[a].parentNode.lastChild.className = "pmcell"; break; } } } // --> </script>
My first code. Hope it's up to scratch. Editing info inside, tested in FF 3.6.11 and IE8.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Feb 27, 2011 5:21:17 GMT -8
Just a suggestion, but maybe you should include the stylesheet needed to use with this code?
|
|