|
Post by Zaxinou on Jul 8, 2011 12:43:35 GMT 10
This code was made by iAlex and I'm reposting here.
This code will allow you to attach Head/Base Images to your news fader. (About the only table that this forum's database doesn't have a head/base image code for) =P
Simply edit the red text with the URL of the desired images.
Cross Browser.
Main Footer.
Proboards.
<script type="text/javascript"> <!--
/*Head/Base Images for News Fader - By iAlex - Open Source*/
var iTopNewsPic = "Header Image"; //News Fader Head Image var iEndNewsPic = "Footer Image"; //News Fader Base Image
if(location.href.match(/action=home/) || !location.href.match(/action/)){ var iTd=document.getElementsByTagName('td'); for(i=0;i<iTd.length;i++){ if(iTd.item(i).className.match(/newstitlebg/) && iTd.item(i).align=="center" && iTd.item(i).innerHTML.match(/>News</)){ var iTopNewsDiv=document.createElement('div'); var iEndNewsDiv=document.createElement('div'); iEndNewsDiv.innerHTML='<center><img src="'+iEndNewsPic+'" /></center>'; iTopNewsDiv.innerHTML='<center><img src="'+iTopNewsPic+'" /></center>'; var iQuickenNews = iTd.item(i).parentNode.parentNode.parentNode.parentNode.parentNode.parentNode; iQuickenNews.parentNode.parentNode.insertBefore(iTopNewsDiv, iQuickenNews.parentNode); iQuickenNews.parentNode.parentNode.insertBefore(iEndNewsDiv, iQuickenNews.parentNode.nextSibling); } } }
//--> </script>
|
|