<script type="text/javascript">
<!--
/* Categories Splitters w/ Head and Base Images
By {XF}Äs$@§sîñ™,
www.xf-clan.netCode from
www.utopiangfx.proboards56.com/index.cgiThis Header Stays Intact */
var catHead = "URL TO HEADER.GIF"; // Head Image
var catBase = "URL TO BASE.GIF"; // Base Image
var separation = "65"; // Size Of Category Seperation
function setMainHBTable(cTable) {
var headDiv = document.createElement("div");
headDiv.setAttribute("align", "center");
var headImg = document.createElement("img");
headDiv.appendChild(headImg);
var baseDiv = headDiv.cloneNode(true);
headDiv.firstChild.setAttribute("src", catHead);
baseDiv.firstChild.setAttribute("src", catBase);
cTable.parentNode.insertBefore(headDiv, cTable);
cTable.parentNode.insertBefore(baseDiv, cTable.nextSibling);
}
var table = document.getElementsByTagName("table");
if (location.href.match(/com\/?((index\.cgi)?\??(action=(home|logout))?(#\w+)?)?$/)) {
var mainTab = document.createDocumentFragment();
for (i=0; i<table.length; i++) {
if (table.item(i).width == "100%" && table.item(i).cellPadding == "4" && table.item(i).rows.item(0).cells.item(0).innerHTML.match(/Forum\sName/i)) {
for (j=1; j<table.item(i).rows.length; j++) {
var tCell = table.item(i).rows.item(j).cells.item(0);
if (j == table.item(i).rows.length - 1 || tCell.className == "catbg" && tCell.colSpan == "5" && tCell.align != "right") {
if (j != 1) {
mainTab.appendChild(outerTab);
var tDiv = document.createElement("div");
tDiv.style.height = separation + "px";
mainTab.insertBefore(tDiv, outerTab);
setMainHBTable(outerTab);
if (j == table.item(i).rows.length - 1) {
innerTab.firstChild.appendChild(table.item(i).rows.item(j).cloneNode(true));
break;
}
}
var outerTab = document.createElement("table");
with (outerTab) {
border = "0";
width = "100%";
cellSpacing = "0";
cellPadding = "0";
className = "bordercolor";
}
var fCell = outerTab.insertRow(0).insertCell(0);
var innerTab = document.createElement("table");
innerTab.appendChild(document.createElement("tbody"));
with (innerTab) {
border = "0";
width = "100%";
cellSpacing = "1";
cellPadding = "4";
}
innerTab.firstChild.appendChild(table.item(i).rows.item(j).cloneNode(true));
innerTab.firstChild.appendChild(table.item(i).rows.item(0).cloneNode(true));
fCell.appendChild(innerTab);
}
else {
innerTab.firstChild.appendChild(table.item(i).rows.item(j).cloneNode(true));
}
}
var rTarget = table.item(i).parentNode.parentNode.parentNode.parentNode;
rTarget.parentNode.replaceChild(mainTab, rTarget);
break;
}
}
}
// -->
</script>
<script type="text/javascript">
<!--
// Category or title text to image
var tCat = document.getElementsByTagName("td");
function textToImage(text,image){
for(t = 0; t < tCat.length; t ++){
var re = new RegExp("<b>" + text + "</b>","i");
if(tCat.item(t).className.match(/^(cat|title)bg/i) && tCat.item(t).innerHTML.match(re)){
tCat.item(t).innerHTML = tCat.item(t).innerHTML.replace(re, "<img src='" + image + "'>");
}
}
}
textToImage("CATAGORY NAME 1","URL TO CATGRADIENT1.GIF");
textToImage("CATAGORY NAME 2","URL TO CATGRADIENT2.GIF");
textToImage("CATAGORY NAME 3","URL TO CATGRADIENT3.GIF");
//-->
</script>
<script type="text/javascript">
<!--
/* remove Forum Name | Topics | Posts...
and add thread & post info by california */
var td=document.getElementsByTagName("td");
if(location.href.match(/com\/?((index\.cgi)?\??(action=(ma.+ad|logout|home))?(#.+)?)?$/)){
for(i=0;i<td.length;i++){
if(td
.width=="1%" && td.innerHTML.match(/\d/)){
if(td[i+1].width.match(/^(1|7)%$/)){
td.innerHTML+="<br />threads";
td.width="8%";
}else{
td.innerHTML+="<br />posts";
td.width="7%";
}
}
if(td.width=="8%" && !td.innerHTML.match(/thread/)){
td.width="4%";
}
if(td.className=="titlebg" && td.innerHTML.match(/Forum Name/i)){
td.parentNode.style.display="none";
}
}
}
//-->
</script>
<script type="text/javascript">
<!--
/* Info Center head/base images A by california */
var headImage = "URL TO INFOHEADER.GIF";
var baseImage = "URL TO BASE.GIF";
var iTable = document.getElementsByTagName("table");
if(location.href.match(/com\/?((index\.cgi)?\??(action=(logout|home))?(#.+)?)?$/)){
for(t=0;t<iTable.length-1;t++){
var fCell = iTable[t+1].rows[0].cells[0];
if(iTable[t].width == "100%" && fCell.innerHTML.match(/Info Center/) && fCell.className == "titlebg"){
var newCenter = document.createElement("center");
var icHead = new Image();
icHead.src = headImage;
var icBase = new Image();
icBase.src = baseImage;
newCenter.appendChild(icHead);
newCenter.appendChild(iTable[t].cloneNode(true));
newCenter.appendChild(icBase);
iTable[t].parentNode.replaceChild(newCenter, iTable[t]);
break;
}
}
}
// -->
</script>
<script type="text/javascript">
//Remove info center titlebar
if( this.location.href.match(/\.com(\/(index\.cgi(\?|#\w+)?)?)?$/))
{
var T = document.body.getElementsByTagName("td");
for(t=0;t<T.length;t++){
if(T[t].className == "titlebg" && T[t].innerHTML.match(/Info\sCenter/))
T[t].parentNode.style.display = "none";
}}
</script>
I was entering codes on a test forum.