Post by $©Ø®Þ!@Ω™ on Jul 16, 2006 21:54:59 GMT
<script type='text/javascript'>
/* Category Splitter Final Release by Scorpian
Version 2 - Image behind category and below boards
http://roddyinnov.proboards75.com */
/*=== Edit These ===*/
var headImg = 'URL'; // URL of head image
var headImgHeight = '25'; // Height of head Image
var headAlign = 'center'; // Align Head Image to left, center, or right
var baseImg = 'URL'; // URL of base image
/*=== Do Not Edit ===*/
var riTable = document.getElementsByTagName('table');
var newHTMLstart = "<table width='100%' cellspacing='0' cellpadding='0' border='0'><tr><td><table width='100%' cellspacing='1' cellpadding='4' class='bordercolor' border='0'><tr>";
var newHTMLcat = "<table width='100%' cellspacing='0' cellpadding='0' border='0' style='background-image:url("+headImg+");'><tr><td align='"+headAlign+"' height='"+headImgHeight+"'>";
var newHTMLend = "</table></td></tr></table><center><img src='"+baseImg+"'/></center><div style='height:35;'></div>";
var newStuff = '</table></td></tr></table>';
if(location.href.match(/action=home$/i) || !location.href.match(/action=/i)){
for(a=0; a<riTable.length; a++){
if(riTable[a].cellPadding == 4 && riTable[a].cellSpacing == 1 && riTable[a-1].className == "bordercolor"&& riTable[a].rows[0].cells[0].firstChild.firstChild && riTable[a].rows[0].cells[0].firstChild.firstChild.innerHTML == "Forum Name"){
for(b=0; b<riTable[a].rows.length; b++){
if(riTable[a].rows[b].cells[0].colSpan == 5 && riTable[a].rows[b].cells[0].className == 'catbg' && riTable[a].rows[b].cells[0].align != 'right'){
newStuff += newHTMLcat + riTable[a].rows[b].cells[0].innerHTML + '</td></tr></table>';
newStuff += newHTMLstart;
newStuff += '<tr>' + riTable[a].rows[0].innerHTML + '</tr>';
for(c=1; c<riTable[a].rows.length; c++){
if(riTable[a].rows[b+c]){
if(riTable[a].rows[b+c].cells[0].className == 'windowbg'){
newStuff += '<tr>' + riTable[a].rows[b+c].innerHTML + '</tr>';
}else{
newStuff += newHTMLend;
break;
}
}else{
newStuff += newHTMLend;
break;
}
}
}
}
var newTab = riTable[a].parentNode;
riTable[a-1].style.backgroundColor = 'transparent';
newTab.innerHTML = newTab.innerHTML.replace(newTab.innerHTML,newStuff);
break;
}
}
}
</script>
Alright, this one works exactly like the v1 code, only it turns the category bar into the head image instead of placing it above. I also fixed the background problem, so you won't need to input your background color. Edit accordingly. MAIN FOOTERS