Post by ialex on Mar 9, 2008 1:06:57 GMT -8
Will allow you to split Sub-Boards at certain points.
Global Footer.
Cross Browser.
Open Source.
<script type="text/javascript">
<!--
/*Selective Sub-Board Splitter - Open Source*/
var iBoId=/board=(Sub-Board ID|Sub-Board ID|Sub-Board ID|Sub-Board ID)$/; //Board IDs
if(window.mouseOverHighlightCellB){
var iTd=document.getElementsByTagName('td');
var i=iTd.length;
while(--i){
if(iTd.item(i).align=="left" && iTd.item(i).className=="windowbg2" && iTd.item(i).width=="66%" && iTd.item(i).vAlign=="top" && iTd.item(i).firstChild.firstChild.href.match(iBoId) && iTd.item(i).parentNode.previousSibling.firstChild.className!="titlebg"){
var iDiv=document.createElement('div');
var iParent=iTd.item(i).parentNode.parentNode.parentNode;
while(iTd.item(i).parentNode.nextSibling && iTd.item(i).parentNode.nextSibling.nodeName.match(/tr/i)){
iDiv.appendChild(iTd.item(i).parentNode.nextSibling);
}
iDiv.insertBefore(iTd.item(i).parentNode, iDiv.firstChild);
iDiv.insertBefore(iParent.rows[0].cloneNode(true), iDiv.firstChild);
iDiv.innerHTML='<b'+'r/><b'+'r/><table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" border="0" width="100%">'+iDiv.innerHTML+'</table></td></tr></table>';
var iTab=iParent.parentNode.parentNode.parentNode.parentNode;
iTab.parentNode.insertBefore(iDiv, iTab.nextSibling);
}
}
}
//-->
</script>
Simply edit the red text at the top of the code with the IDs of the boards that you wish to split at. If you wish to add more boards to the list then separate each with a '|'.
Global Footer.
Cross Browser.
Open Source.
<script type="text/javascript">
<!--
/*Selective Sub-Board Splitter - Open Source*/
var iBoId=/board=(Sub-Board ID|Sub-Board ID|Sub-Board ID|Sub-Board ID)$/; //Board IDs
if(window.mouseOverHighlightCellB){
var iTd=document.getElementsByTagName('td');
var i=iTd.length;
while(--i){
if(iTd.item(i).align=="left" && iTd.item(i).className=="windowbg2" && iTd.item(i).width=="66%" && iTd.item(i).vAlign=="top" && iTd.item(i).firstChild.firstChild.href.match(iBoId) && iTd.item(i).parentNode.previousSibling.firstChild.className!="titlebg"){
var iDiv=document.createElement('div');
var iParent=iTd.item(i).parentNode.parentNode.parentNode;
while(iTd.item(i).parentNode.nextSibling && iTd.item(i).parentNode.nextSibling.nodeName.match(/tr/i)){
iDiv.appendChild(iTd.item(i).parentNode.nextSibling);
}
iDiv.insertBefore(iTd.item(i).parentNode, iDiv.firstChild);
iDiv.insertBefore(iParent.rows[0].cloneNode(true), iDiv.firstChild);
iDiv.innerHTML='<b'+'r/><b'+'r/><table border="0" width="100%" cellspacing="0" cellpadding="0" class="bordercolor"><tr><td><table cellpadding="4" cellspacing="1" border="0" width="100%">'+iDiv.innerHTML+'</table></td></tr></table>';
var iTab=iParent.parentNode.parentNode.parentNode.parentNode;
iTab.parentNode.insertBefore(iDiv, iTab.nextSibling);
}
}
}
//-->
</script>
Simply edit the red text at the top of the code with the IDs of the boards that you wish to split at. If you wish to add more boards to the list then separate each with a '|'.