|
Post by Reverse Blade on Jul 3, 2012 17:39:43 GMT
A simple category splitter. You can edit the css to fit to whatever style you need with the .catspace class. This code will just add a row between the categories. PREVIEWMain Header:Edit this css to personalize the spacer. <style type="text/css"> .catspace { background: #FFF; } </style>
Main Footer: <script type="text/javascript"> <!--
/* Simple Category Splitter By: Reverse Blade http://blackout1.proboards.com */
var d = document.getElementsByTagName('td'); for (var t = 0; t < d.length; t++) { if (d[t].className == 'windowbg' && d[t].width == '8%') { if (d[t].parentNode.nextSibling.firstChild.className == 'catbg' && !d[t].parentNode.nextSibling.getElementsByTagName('img')[0]) { var space = document.createElement('td'); var tr = document.createElement('tr');
space.colSpan = '5'; space.className = 'catspace';
tr.appendChild(space);
d[t].parentNode.parentNode.insertBefore(tr, d[t].parentNode.nextSibling); } } }
//--> </script>
|
|