Post by noman on Mar 22, 2007 10:32:35 GMT -5
This code creates a table that will display a random affiliate banner on the left and your forum banner on the right.
Preview:
<table border="0" cellpadding="0" cellspacing="0" width="200">
<tr><td width="100%" class="bordercolor">
<table border="0" cellpadding="3" cellspacing="1" width="100%">
<tr><td width="200" colspan="2" class="titlebg" height ="9"></td>
<tr><td width="100" height="40" class="windowbg" align="center" valign="middle">
<script type="text/javascript">
<!--
banner=new Array();
// Affiliates
banner[0]='<a href="FORUM URL GOES HERE" target="_blank"><img src="IMAGE URL GOES HERE" border="0"></a>';
banner[1]='<a href="FORUM URL GOES HERE" target="_blank"><img src="IMAGE URL GOES HERE" border="0"></a>';
banner[2]='<a href="FORUM URL GOES HERE" target="_blank"><img src="IMAGE URL GOES HERE" border="0"></a>';
// End of Affiliates
randomize=Math.round(Math.random(new Date().getSeconds())*banner.length);
if(randomize==banner.length){randomize=0;}
document.write(banner[randomize]);
//-->
</script>
</td>
<td width="100" height="40" class ="windowbg2" align="center" valign="middle">
<!-- Your Banner -->
<a href="YOUR LINK GOES HERE"> <img src="YOUR IMAGE URL GOES HERE" border="0"></a>
</td></tr>
<tr><td width="200" colspan="2" class="titlebg" height = "9"</td>
</tr></table>
</td></tr></table>
For more random affiliates add:
banner[3]='<a href="FORUM URL GOES HERE" target="_blank"><img src="IMAGE URL GOES HERE" border="0"></a>';
banner[4]='<a href="FORUM URL GOES HERE" target="_blank"><img src="IMAGE URL GOES HERE" border="0"></a>';
etc.
Preview:
<table border="0" cellpadding="0" cellspacing="0" width="200">
<tr><td width="100%" class="bordercolor">
<table border="0" cellpadding="3" cellspacing="1" width="100%">
<tr><td width="200" colspan="2" class="titlebg" height ="9"></td>
<tr><td width="100" height="40" class="windowbg" align="center" valign="middle">
<script type="text/javascript">
<!--
banner=new Array();
// Affiliates
banner[0]='<a href="FORUM URL GOES HERE" target="_blank"><img src="IMAGE URL GOES HERE" border="0"></a>';
banner[1]='<a href="FORUM URL GOES HERE" target="_blank"><img src="IMAGE URL GOES HERE" border="0"></a>';
banner[2]='<a href="FORUM URL GOES HERE" target="_blank"><img src="IMAGE URL GOES HERE" border="0"></a>';
// End of Affiliates
randomize=Math.round(Math.random(new Date().getSeconds())*banner.length);
if(randomize==banner.length){randomize=0;}
document.write(banner[randomize]);
//-->
</script>
</td>
<td width="100" height="40" class ="windowbg2" align="center" valign="middle">
<!-- Your Banner -->
<a href="YOUR LINK GOES HERE"> <img src="YOUR IMAGE URL GOES HERE" border="0"></a>
</td></tr>
<tr><td width="200" colspan="2" class="titlebg" height = "9"</td>
</tr></table>
</td></tr></table>
For more random affiliates add:
banner[3]='<a href="FORUM URL GOES HERE" target="_blank"><img src="IMAGE URL GOES HERE" border="0"></a>';
banner[4]='<a href="FORUM URL GOES HERE" target="_blank"><img src="IMAGE URL GOES HERE" border="0"></a>';
etc.