Coding from a friend
Nov 14, 2008 22:54:08 GMT
Post by sorrowfulangel on Nov 14, 2008 22:54:08 GMT
<script type='text/Javascript'>
<!--
/* Category Splitter w/Different head/base images - DregondRahl
Donot Repost this code or edit this copyright
support.proboards.com */
var iTableWidth = "100%";
var catSpacing = "30px";
//Do not Edit Below
var table = document.getElementsByTagName('table');
var div = document.createElement('div');
var divA = document.createElement('div');
divA.style.height = catSpacing ;
if(location.href.match(/action=(change|home)/i) || !location.href.match(/action=/i)){
for(i=0; i<table.length; i++){
if(table.cellPadding =='4' && table[i-1].className =='bordercolor' && table.rows[0].cells[0].firstChild.innerHTML.match(/Forum\sName/i)){
for(r=1; r<table.rows.length; r++){
if(table.rows[r].getElementsByTagName('a')[0].name){
var name = table.rows[r].getElementsByTagName('a')[0].name
var divH = document.createElement('div');
var divB = document.createElement('div');
divH.className = name+'head';
divB.className = name+'base';
var tab = document.createElement('table');
tab.width = iTableWidth;
tab.className = 'bordercolor';
tab.id = 'daSplit';
tab.cellPadding = '4';
tab.cellSpacing = '1';
tab.align ='center';
var cat = table.rows[r].cells[0].lastChild;
tab.appendChild(document.createElement('tbody'));
tab.firstChild.appendChild(table.rows[0].cloneNode(true));
var title = tab.rows[0].cells[0].firstChild.firstChild;
title.parentNode.replaceChild(cat,title);
div.appendChild(divA.cloneNode(true));
div.appendChild(divH);
div.appendChild(tab);
div.appendChild(divB);
} else if(table.rows[r].cells[4]){
tab.lastChild.appendChild(table.rows[r].cloneNode(true));
}
}
table[i-1].parentNode.replaceChild(div,table[i-1]);
break;
}
}
}
//-->
</script>
(
think this should work right it 'll help space apart the places like the sub catagories. Since if we use this it will help organize since it will space the catagories farther apart so it would be easier to get the right one and we could then work on like adding to each one so it won't look as cramped but we can add other places.
<!--
/* Category Splitter w/Different head/base images - DregondRahl
Donot Repost this code or edit this copyright
support.proboards.com */
var iTableWidth = "100%";
var catSpacing = "30px";
//Do not Edit Below
var table = document.getElementsByTagName('table');
var div = document.createElement('div');
var divA = document.createElement('div');
divA.style.height = catSpacing ;
if(location.href.match(/action=(change|home)/i) || !location.href.match(/action=/i)){
for(i=0; i<table.length; i++){
if(table.cellPadding =='4' && table[i-1].className =='bordercolor' && table.rows[0].cells[0].firstChild.innerHTML.match(/Forum\sName/i)){
for(r=1; r<table.rows.length; r++){
if(table.rows[r].getElementsByTagName('a')[0].name){
var name = table.rows[r].getElementsByTagName('a')[0].name
var divH = document.createElement('div');
var divB = document.createElement('div');
divH.className = name+'head';
divB.className = name+'base';
var tab = document.createElement('table');
tab.width = iTableWidth;
tab.className = 'bordercolor';
tab.id = 'daSplit';
tab.cellPadding = '4';
tab.cellSpacing = '1';
tab.align ='center';
var cat = table.rows[r].cells[0].lastChild;
tab.appendChild(document.createElement('tbody'));
tab.firstChild.appendChild(table.rows[0].cloneNode(true));
var title = tab.rows[0].cells[0].firstChild.firstChild;
title.parentNode.replaceChild(cat,title);
div.appendChild(divA.cloneNode(true));
div.appendChild(divH);
div.appendChild(tab);
div.appendChild(divB);
} else if(table.rows[r].cells[4]){
tab.lastChild.appendChild(table.rows[r].cloneNode(true));
}
}
table[i-1].parentNode.replaceChild(div,table[i-1]);
break;
}
}
}
//-->
</script>
(
think this should work right it 'll help space apart the places like the sub catagories. Since if we use this it will help organize since it will space the catagories farther apart so it would be easier to get the right one and we could then work on like adding to each one so it won't look as cramped but we can add other places.