inherit
134992
0
May 26, 2012 2:38:57 GMT -8
SubDevo
Creator of LSD...
3,861
December 2008
subdevo
|
Post by SubDevo on Jul 2, 2009 19:38:17 GMT -8
Thread/Board Image Cell Highlight by SubDevoTested in IE, FF, Opera and Safari. Ok, this gives you the option of using an image for your Thread/Board cell highlights. Why is this code different from similar codes? This one is small and fast. THERE ARE NO LOOPS IN THIS CODE! It simply overwrites the PB functions with new ones!. It will only load the functions, if you have a valid URL to an image entered. And the code only "runs" when you mouseover a cell. nice... Enjoy!!! SubDevo Only one variable to edit: var overImg="URL TO HIGHLIGHT IMAGE";To disable the image cell highlight and go back to PB default cell highlighting, do this: var overImg=""; Location: Global FooterCode:<script type="text/javascript"> <!-- /* Thread/Board Image Cell Highlight by SubDevo */ /* Global Footer - Please leave this header intact. */ /* interoceandesigns.proboards.com or lsdp.proboards.com */ var overImg="URL TO HIGHLIGHT IMAGE"; if(overImg.match(/^http:\/\//i)&&window.mouseOverHighlightCell){ document.write('<script type="text/javascript">function mouseOverHighlightCell(cd){onLit(cd);}function mouseOutHighlightCell(cd){outKill(cd);}function mouseOverHighlightCellB(cd){onLit(cd);}function mouseOutHighlightCellB(cd){outKill(cd);}function onLit(cd){cd.style.backgroundImage="url("+overImg+")";}function outKill(cd){cd.style.backgroundImage="";}</scr'+'ipt>'); } // --> </script>
|
|