Category Splitter Apr 8, 2007 15:14:13 GMT -5 Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by offline on Apr 8, 2007 15:14:13 GMT -5 Description: Splits the main-page categories into tables separated by set margins.Cross-browser: YesMain Footer<script type="text/javascript"><!--// Category Splittervar u = "30px"; // Margin between categoriesvar split = [], tables = document.getElementById("container").getElementsByTagName("table");if(!location.href.match(/action=/) || location.href.match(/action=home/)) { for(var i = tables[2 - -countertables()].rows, x = 1, a = -1, e = 6; x < i.length; x ++) { if(i[x].firstChild.className == "windowbg") { split.push("<tr>" + i[x].innerHTML + "</tr>"); } else if(i[x].firstChild.align != "right") { a ++; split = ["<tr>" + i[0].innerHTML + "</tr><tr>" + i[x].innerHTML + "</tr>"]; } }; var con = document.createElement("div"); for(var x in split) con.innerHTML += "<table cellpadding='4' cellspacing='1' width='100%' style='margin-bottom: " + u + "' class='bordercolor'>" + split[x].join("") + "</table>"; tables[1 - -countertables()].style.backgroundColor = "transparent"; tables[2 - -countertables()].parentNode.replaceChild(con, tables[2 - -countertables()]);}//--></script>