|
Code descrption: The threads which are stickied will have a different color from the rest, you can edit the color in the code. board footers <script type="text/javascript"> /*Colorize Sticky Topics Created by CrAzY_J Do no redistribute this code without the creator's permission*/
var ncolor = '#333333'; var sticky = 'sticky.gif'; var stickyl = 'stickylock.gif';
var gCell = document.body.getElementsByTagName( "td" ); for( az = 0 ; az < gCell.length ; az ++ ) { if( gCell[az].width == "6%" && gCell[az].innerHTML.match(new RegExp("("+sticky+"|"+stickyl+")","i")) ) { var font = document.createElement('font'); font.setAttribute('color',ncolor); font.appendChild( document.createTextNode(gCell[az+2].getElementsByTagName('b')[0].innerHTML) ); gCell[az+2].getElementsByTagName('b')[0].innerHTML = ''; gCell[az+2].getElementsByTagName('b')[0].appendChild(font); } } </script>
Last Edit: Jun 30, 2006 21:13:58 GMT by Chris
|
|
|