Post by Bennett 🚀 on Nov 24, 2009 16:15:15 GMT -8
READ WHOLE THREAD! INSTRUCTIONS ARE CRUCIAL!
Well, this code is as my title says, it is a fully editable JS affiliate table.
Code Name: Fully Editable Javascript Affiliate Table v2
Tested In: FF, IE 8.0, Google Chrome
Preview: squirtlestestsite.proboards.com/
Placement: Global or Main Footer. Wherever you want it displayed.
<script type="text/javascript"><!--
/* Fully Editable Javascript Affiliate Table v2
optimized by moneyman18, original idea by iPokemon
Edit as necessary
Do not redistribute without explicit consent given from creator.
*/
var table_width = "700px"; //Width of Table
var table_height = "50px"; //Height of Table
var affiliates_bar = "Affiliates"; //Title of Table
var target = "_blank"; //Open affiliate in new tab or not. If you want it in the same window, change it to _self
var border = 0; //Images Border
var scrollamount = 4; //How fast the marquee is
var direction = "left"; //Direction of Marquee
var affs = new Array();
//affs[#] = ["Forum Name", "Image URL", "Site Url"];
//Edit as instructed
affs[0] = ["Forum Name", "Image Url", "Site Url"];
affs[1] = ["Forum Name", "Image Url", "Site Url"];
affs[2] = ["Forum Name", "Image Url", "Site Url"];
affs[3] = ["Forum Name", "Image Url", "Site Url"];
affs[4] = ["Forum Name", "Image Url", "Site Url"];
/* !@%^ DO NOT EDIT BELOW HERE #&^%@! */
document.write('<table width="'+table_width+'" height="'+table_height+'" cellpadding="4" cellspacing="1" align="center" class="bordercolor"><tr><td width="100%" class="titlebg" align="center"><b>'+affiliates_bar+'</b></td></tr><tr><td width="100%" class="windowbg2" align="center"><marquee scrollamount="'+scrollamount+'" direction="'+direction+'" onMouseOver="this.stop();" onMouseOut="this.start();">');
for(i=0;i<affs.length;i++){
document.write(' <a href="'+affs[2]+'" target="'+target+'"><img src="'+affs[1]+'" title="'+affs[0]+'" alt="'+affs[0]+'" border="'+border+'" /></a> ');
}
document.write('</marquee></td></tr></table>');
//--></script>
EDIT AS THE COMMENTS SAY!
How to add more affiliates:
Add this below the: "
affs[0] = ["Forum Name", "Image Url", "Site Url"];
affs[1] = ["Forum Name", "Image Url", "Site Url"];
affs[2] = ["Forum Name", "Image Url", "Site Url"];
affs[3] = ["Forum Name", "Image Url", "Site Url"];
affs[4] = ["Forum Name", "Image Url", "Site Url"];
Edit the # to 1 higher number than the last one.
Example:
affs[0] = ["Forum Name", "Image Url", "Site Url"];
affs[1] = ["Forum Name", "Image Url", "Site Url"];
affs[2] = ["Forum Name", "Image Url", "Site Url"];
affs[3] = ["Forum Name", "Image Url", "Site Url"];
affs[4] = ["Forum Name", "Image Url", "Site Url"];
affs[5] = ["Forum Name", "Image Url", "Site Url"];
affs[6] = ["Forum Name", "Image Url", "Site Url"];
affs[7] = ["Forum Name", "Image Url", "Site Url"];
affs[8] = ["Forum Name", "Image Url", "Site Url"];
affs[9] = ["Forum Name", "Image Url", "Site Url"];
Well, this code is as my title says, it is a fully editable JS affiliate table.
Code Name: Fully Editable Javascript Affiliate Table v2
Tested In: FF, IE 8.0, Google Chrome
Preview: squirtlestestsite.proboards.com/
Placement: Global or Main Footer. Wherever you want it displayed.
<script type="text/javascript"><!--
/* Fully Editable Javascript Affiliate Table v2
optimized by moneyman18, original idea by iPokemon
Edit as necessary
Do not redistribute without explicit consent given from creator.
*/
var table_width = "700px"; //Width of Table
var table_height = "50px"; //Height of Table
var affiliates_bar = "Affiliates"; //Title of Table
var target = "_blank"; //Open affiliate in new tab or not. If you want it in the same window, change it to _self
var border = 0; //Images Border
var scrollamount = 4; //How fast the marquee is
var direction = "left"; //Direction of Marquee
var affs = new Array();
//affs[#] = ["Forum Name", "Image URL", "Site Url"];
//Edit as instructed
affs[0] = ["Forum Name", "Image Url", "Site Url"];
affs[1] = ["Forum Name", "Image Url", "Site Url"];
affs[2] = ["Forum Name", "Image Url", "Site Url"];
affs[3] = ["Forum Name", "Image Url", "Site Url"];
affs[4] = ["Forum Name", "Image Url", "Site Url"];
/* !@%^ DO NOT EDIT BELOW HERE #&^%@! */
document.write('<table width="'+table_width+'" height="'+table_height+'" cellpadding="4" cellspacing="1" align="center" class="bordercolor"><tr><td width="100%" class="titlebg" align="center"><b>'+affiliates_bar+'</b></td></tr><tr><td width="100%" class="windowbg2" align="center"><marquee scrollamount="'+scrollamount+'" direction="'+direction+'" onMouseOver="this.stop();" onMouseOut="this.start();">');
for(i=0;i<affs.length;i++){
document.write(' <a href="'+affs[2]+'" target="'+target+'"><img src="'+affs[1]+'" title="'+affs[0]+'" alt="'+affs[0]+'" border="'+border+'" /></a> ');
}
document.write('</marquee></td></tr></table>');
//--></script>
EDIT AS THE COMMENTS SAY!
How to add more affiliates:
Add this below the: "
affs[0] = ["Forum Name", "Image Url", "Site Url"];
affs[1] = ["Forum Name", "Image Url", "Site Url"];
affs[2] = ["Forum Name", "Image Url", "Site Url"];
affs[3] = ["Forum Name", "Image Url", "Site Url"];
affs[4] = ["Forum Name", "Image Url", "Site Url"];
affs[#] = ["Forum Name", "Image Url", "Site Url"];
Edit the # to 1 higher number than the last one.
Example:
affs[0] = ["Forum Name", "Image Url", "Site Url"];
affs[1] = ["Forum Name", "Image Url", "Site Url"];
affs[2] = ["Forum Name", "Image Url", "Site Url"];
affs[3] = ["Forum Name", "Image Url", "Site Url"];
affs[4] = ["Forum Name", "Image Url", "Site Url"];
affs[5] = ["Forum Name", "Image Url", "Site Url"];
affs[6] = ["Forum Name", "Image Url", "Site Url"];
affs[7] = ["Forum Name", "Image Url", "Site Url"];
affs[8] = ["Forum Name", "Image Url", "Site Url"];
affs[9] = ["Forum Name", "Image Url", "Site Url"];
http://erinuki-images.comlu.com/code_images/open_affiliate_banner.png
http://erinuki-images.comlu.com/code_images/open_affiliate_banner2.png
http://erinuki-images.comlu.com/code_images/open_affiliate_banner3.png
http://erinuki-images.comlu.com/code_images/open_affiliate_banner4.png