Post by Matt on Jun 11, 2006 8:51:19 GMT -5
Created By: Kahless (Kronos Designs)
Creator's Comments:
Description: splits categorys with head and base images
Crossbrowser
Main Footer
simply edit this
var head = 'URL'; //Url to header image
var base = 'URL'; //Url to footer image
var uheight = "20" //Split Height
Creator's Comments:
Description: splits categorys with head and base images
Crossbrowser
Main Footer
simply edit this
var head = 'URL'; //Url to header image
var base = 'URL'; //Url to footer image
var uheight = "20" //Split Height
<script>
<!--
/*=============================================================
Kahless' Catagory Splitter V1
Writen By Kahless
http://kronosdesigns.proboards61.com
Do not redistribute or repost anywhere other than Kronos Designs or Studio Zero
===============================================================*/
//Edit the following
var head = 'URL'; //Url to header image
var base = 'URL'; //Url to footer image
var uheight = "20" //Split Height
//Do not Edit Below here
var iTable = document.getElementsByTagName("table");
ctop = '<table cellspacing="0" cellpadding="0" style="backgroundcolor: transparent" width="100%"><tr><td><img src ="'+head+'" border="0" /></td></tr><tr><td>';
cbottom = '</td></tr><tr><td><img src="'+base+'" border="0" /></td></tr></table>';
var splitter = '<div style="height: '+uheight+'px;"></div>';
var cell;
var data = ctop+'<table cellpadding="4" cellspacing="1" border="0" width="100%" class="bordercolor">';
OuterLoop:
for(a=0;a<iTable.length;a++)
{
if(iTable[a].width == "100%" && iTable[a].cellPadding == "4" && iTable[a].cellSpacing == "1" && iTable[a].firstChild.firstChild.firstChild.nextSibling.innerHTML.match(/Topics/i))
{
var forumname = iTable[a].firstChild.firstChild.innerHTML;
var iTR = iTable[a].rows;
for(b=1;b<iTR.length;b++)
{
if(iTR[b].firstChild.className == "catbg" && !iTR[b].firstChild.innerHTML.match(/action=markallboardsread/i))
{
cell = iTR[b].innerHTML;
data += '</table>'+cbottom+splitter+ctop+'<table class="bordercolor" cellpadding="4" cellspacing="1" border="0" width="100%">'+forumname+'<tr>'+cell+'</tr>';
} else {
cell = iTR[b].innerHTML;
data += '<tr>'+cell+'</tr>'
}
}
data += '</table>'+cbottom;
iTable[a].parentNode.innerHTML=data;
iTable[a-1].style.backgroundColor = "transparent";
iTable[a].parentNode.getElementsByTagName("div")[0].style.display = "none";
iTable[a].parentNode.getElementsByTagName("table")[0].style.display = "none";
break OuterLoop;
}
}
//-->
</script>