Post by Peter on Oct 29, 2004 11:46:19 GMT
Code created by Forte[/color]
All headers:
Main footer:
This script creates a page to put your affiliates. You can add and remove affiliates in the admin control panel.
All headers:
<script>
var menubar=document.getElementsByTagName("TD")[5]
menubar.innerHTML+=" <a href='/index.cgi?area=affiliates'><img src='http://www.webpost.net/vi/vizionarystudio/affiliates.gif' border=0></a>"
</script>
Main footer:
<script>
<!--
/*Affiliate Page V1.0
Copyright ? 2004 Eric Rykwalder
This script may not be posted by anyone besides it's creator (Eric Rykwalder, AKA: Blade/Zero Hunter).
This script must contain this header for use. */
document.write('<script src="http://www.webpost.net/vi/vizionarystudio/maffiliate.js"></scr'+'ipt>');
if(location.href.indexOf("action=admin")!=-1){
var TD = document.getElementsByTagName("td")
for(t=0;t<TD.length;t++){
if(TD[t].width=="50%" && TD[t].vAlign=="top" && TD[t].innerHTML.match(/Modify Headers and Footers/i) && TD[t].innerHTML.match(/.(gif|jpg|jpeg|png|bmp|swf)/i)){
var Img = TD[t].getElementsByTagName("IMG")[0].src
TD[t].previousSibling.innerHTML+= '<img src="' +Img + '"> <b>Affiliates Control Panel</b><ul><a href="index.cgi?action=headersfooters&type=addaffil">Add affiliate</a><br'+' /><a href="index.cgi?action=headersfooters&type=remaffil">Remove affiliate</a>'
}}}
function Affiliate(AffiliateURL,MiniBanner){
document.write("<a href='"+AffiliateURL+"' target='_blank'><img src='"+MiniBanner+"' width='88' height='31' border='0' /></a> ")}
if(location.href.indexOf('area=affiliates')!=-1){
var remove = document.getElementsByTagName("table");
for(i=4;i<remove.length;i++){remove[i].style.display="none"}
document.write('<br/><br/><center><table cellpadding="4" cellspacing="1" class="bordercolor" width="695"><tr><td height="18" align="center" class="titlebg"><font size=2 class=text1><b>Affiliates</b></font></td></tr><tr><td height="100%" class="windowbg2" width="100%">')
document.write('<table cellpadding="4" cellspacing="0" width="100%" height="50%" class="windowbg2"><tr><td valign="top" class="windowbg2" height="100%" width="100%" align="left">')
//Affiliates Here
//End affiliates (from time to time you may have to remove spaces here)
document.write('</td></tr></table></td></tr>')
var a = Math.floor(Math.random()*21)
if(a==20){
document.write('<tr><td height="18" class="catbg" align="center"><font size=1>Script made by ZeroHunter (http://elitedesigns.proboards20.com)</font></td></tr>');
}
document.write('</table></center>');
}
-->
</script>
This script creates a page to put your affiliates. You can add and remove affiliates in the admin control panel.