Danny
Posts Too Much
Formerly Schnooble
Posts: 332
|
Post by Danny on Mar 7, 2007 2:52:16 GMT
Main FooterThis code adds a row with scrolling affiliate banners onto the bottom of your info center. Preview - Click HereEdit where stated. <script type="text/javascript"> <!-- /*Affiliates in Info Center by Schnooble*/
var aff = new Array(); aff[0] = ["Url of Affiliate","Url of Affiliate Banner","Forum Name"]; aff[1] = ["Url of Affiliate","Url of Affiliate Banner","Forum Name"]; aff[2] = ["Url of Affiliate","Url of Affiliate Banner","Forum Name"]; aff[3] = ["Url of Affiliate","Url of Affiliate Banner","Forum Name"]; aff[4] = ["Url of Affiliate","Url of Affiliate Banner","Forum Name"]; aff[5] = ["Url of Affiliate","Url of Affiliate Banner","Forum Name"];
var tab = document.getElementsByTagName("table"); for(e=0; e<tab.length; e++) { if(tab[e].width=="100%" && tab[e].cellPadding=="4" && tab[e].border=="0" && tab[e].cellSpacing=="1" && tab[e].innerHTML.match(/Info Center/i)) { var affRow = tab[e].insertRow(5) var affRow2 = tab[e].insertRow(5) var affCell2 = affRow2.insertCell(0) affCell2.className ='titlebg'; affCell2.colSpan ='2'; affCell2.innerHTML+='Affiliates - '+aff.length+''; var affCell = affRow.insertCell(0) affCell.className ='windowbg'; affCell.colSpan ='2'; affCell.innerHTML +='<marquee scrollamount="3">'; for(a=0;a<aff.length;a++) if(aff[a]) affCell.innerHTML +='<a href="'+aff[a][0]+'" alt="'+aff[a][2]+'"><img src="'+aff[a][1]+'" /></a> '; affCell.innerHTML +='</marquee>';
} } //--> </script>
|
|