ialex
New Member
Posts: 10
inherit
143112
0
May 29, 2010 13:09:41 GMT -8
ialex
10
July 2009
ialex
|
Post by ialex on Oct 1, 2007 1:27:57 GMT -8
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.
<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>
|
|