<script type='text/javascript'>
/*
iFusion Affiliates Box v2
Created by iFusion
Converted for Zeta Board by Agent Moose
*/
var iAff = []
iAff[0] = [ "http://www.SITE1.com" , "Text for site 1" , "http://www.LINK.TO/IMAGE.GIF" ]
iAff[1] = [ "http://www.SITE2.com" , "Text for site 1" , "http://www.LINK.TO/IMAGE2.GIF" ]
iAff[2] = [ "http://www.SITE3.com" , "Text for site 1" , "http://www.LINK.TO/IMAGE3.GIF" ]
function pickNum(){
return Math.floor(Math.random() * iAff.length);
}
function randomizeAffs(nums){
var arr = []
var i = 0
while (i<nums){
var x = pickNum()
for(j=0;j<arr.length;j++){
while(x == arr[j]){
x = pickNum();
j = 0;
}
}
arr[arr.length++] = x
i++
}
return arr
}
function positionMarquee(num){
document.getElementById('affMarquee').scrollTop="38"
document.getElementById('affMarquee').stop();
}
function scrollMarquee(){
document.getElementById('affMarquee').scrollTop="0";
document.getElementById('affMarquee').start();
drawMarquee( Math.floor(iAff.length / 2) );
clearTimeout('affs')
affs = window.setTimeout('positionMarquee()',500)
}
function expandText(num){
if(num==999){
document.getElementById('insetDesc').innerHTML = "YOUR SITE: TAGLINE HERE"
return;
}
if(num==998){
document.getElementById('insetDesc').innerHTML = "TAGLINE FOR HOVERING OVER BANNER"
return;
}
document.getElementById('insetDesc').innerHTML = iAff[num][1]
}
function drawMarquee(num){
var x = randomizeAffs(num);
document.getElementById('affMarquee').innerHTML = ""
for(i=0;i<x.length;i++){
document.getElementById('affMarquee').innerHTML += '<a href="' + iAff[x[i]][0] + '" onmouseover="expandText(' + x[i] + ')"><img src="' + iAff[x[i]][2] + '" border="0" width=88 height=31></a> '
}
}
function isMarquee(){
if(navigator.appName=="Microsoft Internet Explorer" && navigator.userAgent.match(/Opera/i) == null ){
document.write('<img style="position: relative; top: -8px;" border=0 src="http://209.85.48.8/2661/178/upload/p2372136.gif" onmouseover="scrollMarquee()"> <marquee id="affMarquee" behavior="scroll" direction="down" height="40" width="500px" loop="1" scrollamount="6" scrolldelay="1"></marquee>')
scrollMarquee();
} else {
document.write('<marquee id="affMarquee" behavior="scroll" direction="left" height="40" width="440px" scrollamount="1" scrolldelay="1"></marquee>');
drawMarquee(iAff.length-1);
}
}
</script>
<BR />
<div id="cat-23736" class="category"><table class="cat_head"><tr><td><h2><span class="collapse"><img src='http://209.85.62.27/static/1/collapse.png' alt='-' /></span>Affiliates / Recommended Sites</h2></td></tr></table>
<table style="text-align: center;" class="tablepad" style="border:1px solid #ACBBC3;">
<TR><td width="500px; text-align: center;">
<script>
isMarquee();
</script>
</td><td>
<a href="http://YOUR.FORUMLINK.COM" style="border-left: 1px dotted #000000;text-decoration: none;" > <img src="http://www.LINK.TO/YOUR_IMAGE.GIF" border=0 onmouseover="expandText(999)"></a>
<textarea cols=26 rows=2 style="font-size: 9px; vertical-align: top;" onmouseover="expandText(998)"><a href="http://YOUR.FORUMLINK.COM" alt="SITE NAME"><img src="http://www.LINK.TO/YOUR_IMAGE.GIF"></a></textarea>
</td></TR>
<TR><TD colspan="2">
<div id="insetDesc">Hover over an affiliate to view more...</div>
</TD></TR></TABLE></div>
This was a little request made by Incredible Coder in the
Zeta Board Code Conversion Request thingy...I hope that James doesn't mind that I added to the copyright, just about me converting the code.
Put this any where you would like the table to appear.