iAlex
Junior Member
Posts: 73
|
Post by iAlex on Dec 19, 2007 19:01:21 GMT -5
This code will add Header and Footer images to every default Proboards table. Simply edit the red text with the URL of your header/footer images.
Cross Browser.
Global Footer.
Open Source.
<script type="text/javascript"> <!--
/*Head/Base Images Everywhere - By iAlex - Open Source*/
var iEveryHeadImage="Header Image URL"; //Header Image var iEveryBaseImage="Footer Image URL"; //Foter Image
var iTab=document.getElementsByTagName('table'); var iDiv=document.createElement('div'); iHead='<center><img src="'+iEveryHeadImage+'" /></center>'; iBase='<center><img src="'+iEveryBaseImage+'" /></center>'; var i=iTab.length; while(--i){ if(iTab.item(i).width=="100%" && iTab.item(i).className=="bordercolor" && iTab.item(i).cellSpacing=="0" && iTab.item(i).cellPadding=="0" && iTab.item(i).border=="0"){ var iHeadDiv=iDiv.cloneNode(true); iHeadDiv.innerHTML=iHead; iTab.item(i).parentNode.insertBefore(iHeadDiv, iTab.item(i)); var iBaseDiv=iDiv.cloneNode(true); iBaseDiv.innerHTML=iBase; iTab.item(i).parentNode.insertBefore(iBaseDiv, iTab.item(i).nextSibling); } }
//--> </script>
|
|