|
Post by Wormopolis on Jan 4, 2009 14:35:34 GMT -8
Browser Tested: IE and FF placement: main header/footer
allows you to change the highlight/revert colors for boards on the main page. Especially useful if you have some other code or CSS changing the skin colors after the PB colors are loaded.
<script type="text/javascript"> <!-- // Change board highlight // By Wormopolis // keep header intact - do not repost // wormocodes.proboards.com // MAIN HEADER PART
function mouseOverHighlightCellNEW(tcell){ tcell.style.backgroundColor="FF0000"; } function mouseOutHighlightCellNEW(tcell){ tcell.style.backgroundColor="FF00FF"; } // --> </script>
<script type="text/javascript"> <!-- // Change board highlight // By Wormopolis // keep header intact - do not repost // wormocodes.proboards.com // MAIN FOOTER PART
tds=document.getElementsByTagName('td'); for (j=0; j<tds.length; j++) { if (tds[j].onmouseover && tds[j].parentNode.innerHTML.match(/mouseoverhighlightcell/i)) { lnks=tds[j].getElementsByTagName('a'); sta=lnks[0].firstChild.innerHTML; tds[j].onmouseover=function() {mouseOverHighlightCellNEW(this); setWindowStatus(sta); return true;}; tds[j].onmouseout=function() {mouseOutHighlightCellNEW(this); setWindowStatus(""); return true;};
} }
// --> </script>
preview: if I can figure out a good way to do it...
|
|