Post by ME! on Jun 9, 2006 19:19:05 GMT
<script type="text/javascript">
<!--
/* Trio Affiliates Table - Dregond Rahl
do not redistribute Without permisson*/
var affArray = [];
affArray[0]=['URL OF AFFILIATE','MINI BANNER OF AFFILIATE'];
affArray[1]=['URL OF AFFILIATE','MINI BANNER OF AFFILIATE'];
affArray[2]=['URL OF AFFILIATE','MINI BANNER OF AFFILIATE'];
affArray[3]=['URL OF AFFILIATE','MINI BANNER OF AFFILIATE'];
affArray[4]=['URL OF AFFILIATE','MINI BANNER OF AFFILIATE'];
var yourmb = "YOUR MINI BANNER";
var yoururl = "YOUR FORUM URL";
var yourmsg = "MSG/COPYRIGHT";
var name = "YOUR FORUM NAME";
var MouseOver="6" //speed of highlight when mouseover
var MouseOut="3" //speed of highlight fade when mouseout
//Do Not Edit Below
function disp_alert()
{
var affcode = '<a href="'+yoururl+'" target="_blank"><img src="'+yourmb+'" border="0" /></a>';
prompt("Thank you For Affiliating with "+name+".\nCopy the code below by using ctrl+c.",affcode);
}
var BannerFade = new Object();
var FadeObject = new Object();
function MiniFade(object, destOp, rate, delta){
if(!document.all)
return
if(object != "[object]"){
setTimeout("MiniFade("+object+","+destOp+","+rate+","+delta+")",0);
return;
}
clearTimeout(BannerFade[object.sourceIndex]);
direction = 1;
diff = destOp-object.filters.alpha.opacity;
if(object.filters.alpha.opacity > destOp){
direction = '-1';
}
delta=Math.min(direction*diff,delta);
object.filters.alpha.opacity+=direction*delta;
if(object.filters.alpha.opacity != destOp){
FadeObject[object.sourceIndex]=object;
BannerFade[object.sourceIndex]=setTimeout("MiniFade(FadeObject["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
}
}
document.write('<table width="92%" cellpadding="0" cellspacing="1" align="center" class="bordercolor"><tr><td class="titlebg" width="100%" colspan="3"align="center"><font size=2><b>Affiliates</b></font></td></tr><tr><td width="15%" class="windowbg2" vAlign="center"><center><font size=1>Want to Affiliate?<br>Click Below.</font><br><input type="button" onclick="disp_alert()" value="~Affliate Code~"></center></td><td width="66%" class="windowbg" vAlign="center"><marquee onmouseover="this.stop()" onmouseout="this.start()" direction="left" scrollamount="3">');
for(j=0; j<affArray.length; j++) {
document.write('<a href="'+affArray[j][0]+'" target="_blank"><img src="'+affArray[j][1]+'" style="filter:alpha(opacity=50)" onmouseover="MiniFade(this,200,20,'+MouseOver+')" onmouseout="MiniFade(this,50,20,'+MouseOut+')" border="0"/></a> ');
}
document.write('</marquee></td><td width="14%" class="windowbg2" vAlign="center" align="center"><img src="'+yourmb+'" /> </td></tr><tr><td width="14%" class="windowbg2" vAlign="center" align="center" colSpan ="3"><font size=2>'+yourmsg+'</font></td></tr></table>');
// -->
</script>
adding affiliates
var affArray = [];
affArray[0]=['URL OF AFFILIATE','MINI BANNER OF AFFILIATE'];
affArray[1]=['URL OF AFFILIATE','MINI BANNER OF AFFILIATE'];
affArray[2]=['URL OF AFFILIATE','MINI BANNER OF AFFILIATE'];
affArray[3]=['URL OF AFFILIATE','MINI BANNER OF AFFILIATE'];
affArray[4]=['URL OF AFFILIATE','MINI BANNER OF AFFILIATE'];
add the affilites url and then its mini banner when adding a new one , just increase the number in the [ ] by 1.
example:
affArray[5]=['URL OF AFFILIATE','MINI BANNER OF AFFILIATE'];
var yourmb = "YOUR MINI BANNER";
var yoururl = "YOUR FORUM URL";
var yourmsg = "MSG/COPYRIGHT";
var name = "YOUR FORUM NAME";
they explain themselves, just so you know
the var yourmsg = "MSG/COPYRIGHT";
you can add a message or copyright , right under the affilaites table
leave it blank " "; for none.
var MouseOver="6" //speed of highlight when mouseover
var MouseOut="3" //speed of highlight fade when mouseout
ajust the mouse over highlight speed, and the unhighlight speed on mouse out.