Post by ME! on Jun 5, 2006 8:58:50 GMT
This code is a combination of both Ross's Head/base images Everywhere code and a category divider of mine.
Enjoy
GLOBAL FOOTER
<script type="text/javascript">
<!--
/*
head and base images on all pages & remove forum jump by ross
Category Splitter by Dregond Rahl
101support.proboards43.com
do not repost without permission */
var iHead='HEAD IMG URL';
var iBase='BASE IMG URL';
var splits = '50';
// No need to edit below here
var table = document.getElementsByTagName("table");
var select = document.getElementsByTagName('select');
var td = document.getElementsByTagName("td");
var tSplit ='</table></td></tr></table><div style="height:' + splits + '"></div><table width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" width="100%"><tr>';
fj = select[select.length -1];
fj.style.display = 'none';
theBase=document.createElement('center');
theBase.appendChild(document.createElement('img'));
theBase.lastChild.src=iBase;
theHead=document.createElement('center');
theHead.appendChild(document.createElement('img'));
theHead.lastChild.src=iHead;
for(t=0;t<table.length;t++){
if(table[t].cellPadding=="4" && table[t].cellSpacing=="1" && table[t].innerHTML.match(/Forum Name/i) ){
var titlename = table[t].rows[0].cloneNode(true).innerHTML;
for(i=0;i<td.length;i++){
if(td.width=="66%" && td[i+4].className=="catbg" && td[i+4].align!="right"){
var tdNode = td.parentNode.innerHTML;
var tNode = table[t].parentNode.parentNode.parentNode;
tNode.parentNode.parentNode.innerHTML = tNode.parentNode.parentNode.innerHTML.replace(tdNode, tdNode +tSplit +titlename + "</tr>");
tNode.style.border = "none";
}
}
}
}
for(t=4;t<table.length;t++){
if(table[t].className == 'bordercolor' && table[t].cellPadding == '0') {
table[t].parentNode.insertBefore(theHead.cloneNode(true), table[t]);
if(document.ammForm && table[t].innerHTML.match(/search/i))
fj.parentNode.replaceChild(theBase.cloneNode(true), fj);
else
table[t].parentNode.insertBefore(theBase.cloneNode(true), table[t].nextSibling);
}
}
// -->
</script>
Note : may not work with some main page mods, so the main page mods must be placed under this code for them to work.
Enjoy
GLOBAL FOOTER
<script type="text/javascript">
<!--
/*
head and base images on all pages & remove forum jump by ross
Category Splitter by Dregond Rahl
101support.proboards43.com
do not repost without permission */
var iHead='HEAD IMG URL';
var iBase='BASE IMG URL';
var splits = '50';
// No need to edit below here
var table = document.getElementsByTagName("table");
var select = document.getElementsByTagName('select');
var td = document.getElementsByTagName("td");
var tSplit ='</table></td></tr></table><div style="height:' + splits + '"></div><table width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" width="100%"><tr>';
fj = select[select.length -1];
fj.style.display = 'none';
theBase=document.createElement('center');
theBase.appendChild(document.createElement('img'));
theBase.lastChild.src=iBase;
theHead=document.createElement('center');
theHead.appendChild(document.createElement('img'));
theHead.lastChild.src=iHead;
for(t=0;t<table.length;t++){
if(table[t].cellPadding=="4" && table[t].cellSpacing=="1" && table[t].innerHTML.match(/Forum Name/i) ){
var titlename = table[t].rows[0].cloneNode(true).innerHTML;
for(i=0;i<td.length;i++){
if(td.width=="66%" && td[i+4].className=="catbg" && td[i+4].align!="right"){
var tdNode = td.parentNode.innerHTML;
var tNode = table[t].parentNode.parentNode.parentNode;
tNode.parentNode.parentNode.innerHTML = tNode.parentNode.parentNode.innerHTML.replace(tdNode, tdNode +tSplit +titlename + "</tr>");
tNode.style.border = "none";
}
}
}
}
for(t=4;t<table.length;t++){
if(table[t].className == 'bordercolor' && table[t].cellPadding == '0') {
table[t].parentNode.insertBefore(theHead.cloneNode(true), table[t]);
if(document.ammForm && table[t].innerHTML.match(/search/i))
fj.parentNode.replaceChild(theBase.cloneNode(true), fj);
else
table[t].parentNode.insertBefore(theBase.cloneNode(true), table[t].nextSibling);
}
}
// -->
</script>
Note : may not work with some main page mods, so the main page mods must be placed under this code for them to work.