iAlex
Junior Member
Posts: 73
|
Post by iAlex on Dec 20, 2007 17:39:53 GMT -5
This code will separate the news fader from the rest of your board. Edit the red text with the desired height of the separation.
Main Footer.
Cross Browser.
Open Source.
<script type="text/javascript"> <!--
/*Separate News Fader From Board - By iAlex - Open Source*/
var iSepHeight="25px"; //Separation height
if(location.href.match(/action=home/) || !location.href.match(/action/) && !document.postForm && !document.modifyForm){ var iSepDiv=document.createElement('div'); iSepDiv.style.height=iSepHeight; var iTd=document.getElementsByTagName('td'); var i=iTd.length; while(--i){ if(iTd.item(i).className=="newstitlebg" && iTd.item(i).align=="center" && iTd.item(i).innerHTML.match(/>News</)){ var iParent = iTd.item(i).parentNode.parentNode.parentNode.parentNode.parentNode.parentNode; iParent.parentNode.parentNode.insertBefore(iSepDiv, iParent.parentNode.nextSibling); break; } } }
//--> </script>
|
|