Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
<script type="text/Javascript">
// Post Splitter with Head/Base Images by Chris/CD
// Do not redistribute without permission of the creator

var head = "http://207.44.144.11/v2images/menu_buttons__home.gif"; // URL of the head image
var headHt = "15px"; // Height of the head image
var base = "http://207.44.144.11/v2images/menu_buttons__home.gif"; // URL of the base image



// No need to edit
var aTB = document.getElementsByTagName("TABLE");
if(location.href.match(/action=view_topic/i)){
for(a=0;a<aTB.length;a++){
if(aTB[a].rows[3] && aTB[a].rows[0].cells[0] && aTB[a].rows[0].cells[0].colSpan == 2){
var data = document.createElement("DIV");
aTB[a].rows[0].cells[0].removeChild(aTB[a].rows[0].cells[0].getElementsByTagName("IMG")[0]);
text = document.createElement("FONT");
text.innerHTML = aTB[a].rows[0].cells[0].innerHTML;
aTB[a].rows[0].style.display = "none";

for(b=2;b<aTB[a].rows.length;b++){
if(aTB[a].rows[b].cells[0].colSpan == 2){
var newTab = document.createElement("TABLE");
newTab.cellSpacing = 1;
newTab.className = "border_table";
newTab.width = "100%";

var newRow1 = newTab.insertRow(0);
var newRow2 = newTab.insertRow(1);
newRow1.appendChild(aTB[a].rows[b].cells[0]);
newRow2.appendChild(aTB[a].rows[b+1].cells[0]);

data.appendChild(document.createElement("BR"));
data.appendChild(newTab);

aTB[a].rows[b].style.display = "none";
aTB[a].rows[b+1].style.display = "none";
break;
} else {
data.appendChild(document.createElement("BR"));

var headIM = document.createElement("DIV");
headIM.style.backgroundImage = "url("+head+");";
headIM.style.height = headHt;
headIM.appendChild(text.cloneNode(true));
data.appendChild(headIM);

var newTab = document.createElement("TABLE");
newTab.cellSpacing = 1;
newTab.className = "border_table";
newTab.width = "100%";
var newRow = newTab.insertRow(0);
newRow.appendChild(aTB[a].rows[b].cells[0]);
newRow.appendChild(aTB[a].rows[b].cells[0]);
data.appendChild(newTab);

var footIM = document.createElement("IMG");
footIM.src = base;
var cen = document.createElement("CENTER");
cen.appendChild(footIM);
data.appendChild(cen);

aTB[a].rows[b].style.display = "none";
}
}

aTB[a].parentNode.insertBefore(data,aTB[a].nextSibling);
break;
}
}
}
</script>


Originally used on Sengoku Studios.

Global Footers.


Last Edit: Aug 25, 2006 16:41:34 GMT by Chris

newBookmarkLockedFalling