Post by russell on Sept 4, 2010 6:48:53 GMT -6
I made this years ago, I'll make an updated version that should be faster very soon.
Coded By: Russell
Placement: Global Header, Global Footers to show on every page either above or below boards
or
Main Header, Main Footers to show on main pages either above or below boards
For help with this code pm me.
Coded By: Russell
Placement: Global Header, Global Footers to show on every page either above or below boards
or
Main Header, Main Footers to show on main pages either above or below boards
For help with this code pm me.
<script type="text/javascript">
//Coded by Russell Barnard
//Do not repost without my permission
//For help with this code pm me
////////////////////////////////////////////////////////////////
var fn = ""; //your forum name
var furl = ""; //your forum url
var url = ""; //your minibanner url
var width = "120"; //default 120
var thread = ""; //full url of affiliation thread
////////////////////////////////////////////////////////////////
var furls = new Array();
furls[0] = "url of affiliate";
var iurls = new Array();
iurls[0] = "minibanner urls";
////////////////////////////////////////////////////////////////
function popitup2() {
var newwindow2=window.open('','name','height=250,width=500'); //OPTIONAL CHANGE SIZE OF POPUP
newwindow2.document.write('<html lang="en"><head><title>Affiliation</title>'); //Title of popup
//newwindow2.document.write('<link rel="stylesheet" href="css sheet url">'); //your own css style sheet add it into here, remove // from this line to enable it
newwindow2.document.write('</head><body><center><p>FORUM NAME HERE Affiliation Details</p>'); //ADD YOUR FORUM NAME INTO THIS LINE!!!
newwindow2.document.write('<p><img src="minibanner url here" /></p>'); //ADD YOUR MINIBANNER URL INTO THIS LINE!!!
newwindow2.document.write('<p>Mini Banner URL: minibanner url here</p>'); //ADD YOUR MINIBANNER URL INTO THIS LINE AS WELL!!!
newwindow2.document.write('<p>Forum URL: forum url here</p>'); //ADD YOUR FORUM URL INTO THIS LINE!!!
newwindow2.document.write('<p><a href="javascript:self.close()">Close</a> the popup.</p>');
newwindow2.document.write('</body></html>');
newwindow2.document.close();
}
/////////***No More Editing***/////////
document.write("<table align='center' width='"+width+"' border='0' class='bordercolor' cellspacing='1' cellpadding='0'><tr><td class='titlebg' align='center' colspan='3'>Affiliates</td></tr><tr><td colspan='3' align='center' class='windowbg'><a href='"+thread+"'>Become an Affiliate</a></td></tr>");
document.write("<tr><td colspan='3' height='65' class='windowbg' align='center'>");
var x=0;
for (x=0;x<iurls.length;x++)
{
document.write("<marquee direction='up' height='60' scrollamount='3' onmouseover=this.stop() onmouseout=this.start()><center><a href='"+furls[x]+"' target='_blank'><img src='"+iurls[x]+"' border='0' width='88' height='31' alt='affilaite' style='-moz-opacity:0.5;filter:alpha(opacity=50)' onmouseover='this.style.MozOpacity=1;this.filters.alpha.opacity=100' onmouseout='this.style.MozOpacity=0.5;this.filters.alpha.opacity=50'></a></center></marquee>");
}
document.write("</td></tr>");
document.write("<tr><td colspan='3' class='windowbg' align='center'><a href='javascript:popitup2()'><img width='88' height='31' border='0' src='"+url+"'</a></td></tr></table>");
</script>