|
Post by Wormopolis on Jun 5, 2009 19:17:08 GMT -8
Browser tested: IE and FF placement: main footer changes the board highlight on the main/board page so that the entire row gets highlighted instead of JUST the board cell. code: <script type="text/javascript"> <!-- // Row Highlight on main page v2.0 // By Wormopolis - wormocodes.proboards.com // do not repost - keep header intact
var workOnMainPage=true; //true or false var workOnBoardPage=true; //true or false
function rowhighlightover(tcell) { for (cl=tcell.parentNode.childNodes, cc=0; cc<cl.length; cc++) { mouseOverHighlightCell(cl[cc]); } }
function rowhighlightoff(tcell) { for (cl=tcell.parentNode.childNodes, cc=0; cc<cl.length; cc++) { mouseOutHighlightCell(cl[cc]); } }
for (tds=document.getElementsByTagName('td'), i=0; i<tds.length; i++) { if (((workOnMainPage && tds[i].width=="66%") || (workOnBoardPage && tds[i].width.match(/4(3|8)%/))) && tds[i].onmouseover && tds[i].parentNode.innerHTML.match(/mouseoverhighlightcell/i)) { for (cl=tds[i].parentNode.childNodes, cc=0; cc<cl.length; cc++) { cl[cc].onmouseover=function () {rowhighlightover(this); return true;}; cl[cc].onmouseout=function () {rowhighlightoff(this); return true;}; } } }
// --> </script>
preview: The remodel Im using sorta has it built in, but CLICK HERE to see a normal board with it.
|
|
|
Post by Wormopolis on Apr 10, 2011 19:00:03 GMT -8
version update 1.2: now sets the cells back to original colors on mouseout instead of board cell colors
|
|
|
Post by Wormopolis on Feb 26, 2012 23:22:06 GMT -8
version update 2.0: rewrote how code works as well as added variables for turning on/off on main board and thread listing
|
|