Peter
Junior Member
Coding God
Posts: 50
|
Post by Peter on Apr 29, 2006 13:15:40 GMT
<script type="text/javascript"> <!--
// Separate news fader from boards
// Size of the gap between news fader and boards var nfSize = 25;
var iDiv = document.createElement("div"); var iTable = document.getElementsByTagName("table");
iDiv.style.height = nfSize;
function splitNewsFader(){ for(t = 0; t < iTable.length; t ++){ if(iTable.item(t).width == "100%" && iTable.item(t).className == "bordercolor" && iTable.item(t).innerHTML.match(/b>News<\//i)){ var iScript = iTable.item(t).parentNode.getElementsByTagName("script").item(1); iTable.item(t).parentNode.insertBefore(iDiv, iScript); } } }
if(location.href.match(/\.com(\/|.+cgi(\?|#.+|\?\w+=home)?)?$/i)){ splitNewsFader(); }
//--> </script>
Add to main footer.
This will separate the news fader from the boards.
|
|