Post by $©Ø®Þ!@Ω™ on Jul 18, 2006 16:48:04 GMT -5
Am I cool, or what? I've created a post splitter where the overall look is better than Chris's! Observe...
Put it in your global footers. If you want it to show up in only 1 board, put it in that board's footers. Enjoy
<script type='text/javascript'>
/* Post Splitter w/ head/base images by Scorpian
http://roddyinnov.proboards75.com */
/*=== Edit These ===*/
var headImg = 'URL'; // URL of head image
var baseImg = 'URL'; // URL of base image
var gapArea = 30; // Height of gap between posts
/*=== Do Not Edit ===*/
var riTable = document.getElementsByTagName('table');
var newHTMLtop = "<img src='"+headImg+"' /><table width='100%' cellspacing='1' cellpadding='4' border='0' class='bordercolor'>";
var newHTMLbottom = "</table><img src='"+baseImg+"' />";
var newHTMLmid = "<div style='height:"+gapArea+"px;'></div>";
var newHTML = '';
if(location.href.match(/action=display/i)){
for(a=0; a<riTable.length; a++){
if(riTable[a].cellSpacing == 1 && riTable[a].cellPadding == 4 && riTable[a].rows[0].cells[0].colSpan == 2){
for(b=0; b<riTable[a].rows.length; b++){
if(riTable[a].rows[b].cells[0].colSpan == 2 && riTable[a].rows[b].cells[0].className == 'titlebg' && riTable[a].rows[b+1].cells[0].className.match(/(cat|title)bg/i)){
if(riTable[a].rows[b+1].cells[0].innerHTML.match(/Poll/i)){
riTable[a].rows[b].style.display = 'none';
riTable[a].rows[b+3].style.display = 'none';
newHTML += '<br/>' + newHTMLtop + '<tr>' + riTable[a].rows[b].innerHTML + '</tr>';
}else{
riTable[a].rows[b].style.display = 'none';
riTable[a].rows[b+1].style.display = 'none';
newHTML += newHTMLtop + '<tr>' + riTable[a].rows[b].innerHTML + '</tr>';
}
}
if(riTable[a].rows[b].cells[0].width == '20%' && riTable[a].rows[b].cells[0].className != 'catbg'){
riTable[a].rows[b].style.display = 'none';
newHTML += '<tr>' + riTable[a].rows[b].innerHTML + '</tr>';
if(riTable[a].rows[b+1].cells[0].className == 'titlebg'){
riTable[a].rows[b+1].style.display = 'none';
newHTML += '<tr>' + riTable[a].rows[b+1].innerHTML + '</tr>' + newHTMLbottom;
if(riTable[a].rows[b+2]){
riTable[a].rows[b+2].style.display = 'none';
newHTML += "<br/><br/><table width='100%' cellspacing='1' cellpadding='4' border='0' class='bordercolor'><tr>";
newHTML += riTable[a].rows[b+2].innerHTML;
newHTML += "</tr></table>";
break;
}else{
break;
}
}else{
newHTML += newHTMLbottom + newHTMLmid + newHTMLtop;
}
}
}
riTable[a].className = 'bordercolor';
riTable[a-1].style.backgroundColor = 'transparent';
var tehNewCell = riTable[a-1].insertRow(1).insertCell(0);
tehNewCell.innerHTML = newHTML;
break;
}
}
}
</script>
Put it in your global footers. If you want it to show up in only 1 board, put it in that board's footers. Enjoy