This is the first Random Affiliate Box that I had some help making.
First you will need to put it in the Footers if you want it at the Bottom of the page. If you want it at the top then put it in the headers it doesn't matter.
<script>
//Created by deathwilldie of Revolution X at www.revolutionx.smfforfree3.com
var tItLe="TITLE HERE"
var AffNum="NUMBER OF AFFILIATES HERE"
var randomizer=Math.round(Math.random()*AffNum)
var affs=[]
affs[0]=["0","SITE_URL","IMAGE_URL"];
for(e=0;e<affs.length;e++){
if(randomizer==affs[e][0]){
document.write("<table align='center' width='200' cellpadding='2' cellspacing='1'><th class='windowbg2' align='center'>"+tItLe+"</th><tr><td class='catbg' align='center'><a href='"+affs[e][1]+"'><img src='"+affs[e][2]+"' /></a></td></tr></table>") }}
</script>
Now its time to learn were to put the Title of the Affiliates Box. Find this part.
All you do is change the TITLE HERE part in it.
Next is the part were you put the affiliates in.
Find this part
affs[0]=["0","SITE_URL","IMAGE_URL"];
For the SITE_URL you put the Url of the site that you want the image to go to.
For the IMAGE_URL you put the image for the site.
Now adding more Affiliates
place
affs[0]=["0","SITE_URL","IMAGE_URL"];
Directly Beneath
affs[0]=["0","SITE_URL","IMAGE_URL"];
Make sure to increase the number in red by one everytime you add a new affiliateExample of how to work code.
<script>
//Created by deathwilldie of SMF Codes at
www.smcodes.smfforfree3.comvar tItLe="
Title Here"
var AffNum="
5"
var randomizer=Math.round(Math.random()*AffNum)
var affs=[]
affs[
0]=["
0","
SITE_URL","
IMAGE_URL"];
affs[
1]=["
1","
SITE_URL","
IMAGE_URL"];
affs[
2]=["
2","
SITE_URL","
IMAGE_URL"];
affs[
3]=["
3","
SITE_URL","
IMAGE_URL"];
affs[
4]=["
4","
SITE_URL","
IMAGE_URL"];
affs[
5]=["
5","
SITE_URL","
IMAGE_URL"];
for(e=0;e<affs.length;e++){
if(randomizer==affs[e][0]){
document.write("<table align='center' width='200' cellpadding='2' cellspacing='1'><th class='maintitle' align='center'>"+tItLe+"</th><tr><td class='row4' align='center'><a href='"+affs[e][1]+"'><img src='"+affs[e][2]+"' /></a></td></tr></table>") }}
</script>
see how the bold red number equals the largest number of all the other red numbers. or the ammount of affiliates plus one.