Post by Ross on Nov 8, 2005 21:41:43 GMT
As featured on the main page here
Main Header:
<div id="forum">
Main Footer:
</div>
<table cellspacing="1" class="bordercolor" align="center"width="92%" id="affTable" style="position: relative; top: 14px;">
<tr>
<td colspan="2" height="18" class="catbg" align="center" id="affTitle">
<font color="FFFFFF">Random Affiliates</font>
</td>
</tr>
<tr>
<td class="windowbg2" width="90%" align="center" valign="middle" id="aff">
</td>
<td class="windowbg" align="center" valign="top" id="ownaff">
<a href="URl to Thread/Board to Affiliate"><img src="Your Mini-Banner URL" width="88" height="31" border="0" alt="Click here affiliate!"></a>
</td>
</tr>
<tr id="viewAllaff">
<td class="windowbg" align="right" colspan="2">
<font size=2>
Click <a href="/index.cgi?&page=affiliates">Here</a> to view all Affiliates
</font>
</td>
</tr>
</table>
<script type="text/javascript">
<!--
var max = 3; // Number of Affiliates to show
var aff = [];
function Affiliate(AffiliateURL,MiniBanner) {
if(location.href.match(/page=affiliate/))
document.getElementById('aff').innerHTML += "&nb"+"sp;<a href='"+AffiliateURL+"' target='_blank'><img src='"+MiniBanner+"' width='88' height='31' border='0' /></a>&nb"+"sp;"
else
aff[aff.length] = [AffiliateURL, MiniBanner];
}
Affiliate ('Site URL','Image URL');
Affiliate ('Site URL','Image URL');
Affiliate ('Site URL','Image URL');
Affiliate ('Site URL','Image URL');
Affiliate ('Site URL','Image URL');
if(location.href.match(/page=affiliate/)) {
document.getElementById('viewAllaff').style.display = 'none';
document.getElementById('ownAff').style.display = 'none';
document.getElementById('forum').style.display = 'none';
document.getElementById('affTitle').firstChild.innerHTML = 'Affiliates';
} else {
var affs = document.getElementById('aff');
for(i=0; i<max; i++) {
rand = Math.floor(Math.random() * aff.length);
if(affs.innerHTML.match(aff[rand][0]))
i--;
else
affs.innerHTML += "&nb"+"sp;<a href='"+aff[rand][0]+"' target='_blank'><img src='"+aff[rand][1]+"' width='88' height='31' border='0' /></a>&nb"+"sp;"
}
}
//-->
</script>
Main Header:
<div id="forum">
Main Footer:
</div>
<table cellspacing="1" class="bordercolor" align="center"width="92%" id="affTable" style="position: relative; top: 14px;">
<tr>
<td colspan="2" height="18" class="catbg" align="center" id="affTitle">
<font color="FFFFFF">Random Affiliates</font>
</td>
</tr>
<tr>
<td class="windowbg2" width="90%" align="center" valign="middle" id="aff">
</td>
<td class="windowbg" align="center" valign="top" id="ownaff">
<a href="URl to Thread/Board to Affiliate"><img src="Your Mini-Banner URL" width="88" height="31" border="0" alt="Click here affiliate!"></a>
</td>
</tr>
<tr id="viewAllaff">
<td class="windowbg" align="right" colspan="2">
<font size=2>
Click <a href="/index.cgi?&page=affiliates">Here</a> to view all Affiliates
</font>
</td>
</tr>
</table>
<script type="text/javascript">
<!--
var max = 3; // Number of Affiliates to show
var aff = [];
function Affiliate(AffiliateURL,MiniBanner) {
if(location.href.match(/page=affiliate/))
document.getElementById('aff').innerHTML += "&nb"+"sp;<a href='"+AffiliateURL+"' target='_blank'><img src='"+MiniBanner+"' width='88' height='31' border='0' /></a>&nb"+"sp;"
else
aff[aff.length] = [AffiliateURL, MiniBanner];
}
Affiliate ('Site URL','Image URL');
Affiliate ('Site URL','Image URL');
Affiliate ('Site URL','Image URL');
Affiliate ('Site URL','Image URL');
Affiliate ('Site URL','Image URL');
if(location.href.match(/page=affiliate/)) {
document.getElementById('viewAllaff').style.display = 'none';
document.getElementById('ownAff').style.display = 'none';
document.getElementById('forum').style.display = 'none';
document.getElementById('affTitle').firstChild.innerHTML = 'Affiliates';
} else {
var affs = document.getElementById('aff');
for(i=0; i<max; i++) {
rand = Math.floor(Math.random() * aff.length);
if(affs.innerHTML.match(aff[rand][0]))
i--;
else
affs.innerHTML += "&nb"+"sp;<a href='"+aff[rand][0]+"' target='_blank'><img src='"+aff[rand][1]+"' width='88' height='31' border='0' /></a>&nb"+"sp;"
}
}
//-->
</script>