|
Post by Wormopolis on Jul 19, 2009 9:30:04 GMT -8
Browser tested: IE and FF placement: Main Footer
Converts a board title into a sub category header for a more organized look in your categories.
code:
<style="text/css"> .subcat {background-color: #333333;} </style>
<script type="text/javascript"> <!-- // Convert a board title into a category sub-heading // v1.1 // concept by Nats - Coding by Wormopolis : wormocodes.proboards.com // keep header intact - do not repost // main footer
var subcatAlignment = "center"; //alignment of text var boardIDlist = "(boardid1|boardid2|boardid3|boardid4)"; //add board IDs here seperated by |
rgxp= new RegExp("board="+boardIDlist,"i"); for (tds=document.getElementsByTagName('td'),i=0; i<tds.length; i++) { if (tds[i].width=="66%" && tds[i].className=='windowbg2') { if (tds[i].getElementsByTagName('a')[0].href.match(rgxp)) { tds[i].previousSibling.style.display = tds[i].nextSibling.style.display= tds[i].nextSibling.nextSibling.style.display= tds[i].nextSibling.nextSibling.nextSibling.style.display="none"; tds[i].colSpan=5; tds[i].align=subcatAlignment; tds[i].getElementsByTagName('a')[0].href=""; tds[i].onmouseover=tds[i].onmouseout=tds[i].onclick=""; tds[i].className='subcat'; } } } // --> </script>
Preview: soon
|
|
|
Post by Wormopolis on Mar 16, 2011 0:33:38 GMT -8
version update 1.1: added a classname to the subcat for styling
|
|