Simple Machine Codes
April 19, 2024, 06:32:06 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Gallery Affiliates Code Index Staff List Calendar Members Login Register  

iFusion Affilights V2---Converted

Pages: [1]   Go Down
  Print  
Author Topic: iFusion Affilights V2---Converted  (Read 961 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: July 19, 2007, 10:02:39 am »

Code:
<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>&nbsp;'
}
}

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()">&nbsp;<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;" >&nbsp;<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.
Report Spam   Logged

Share on Facebook Share on Twitter

deathwilldie
100 Club Member

Offline Offline

Posts: 214


View Profile WWW
« Reply #1 on: September 08, 2007, 07:45:19 pm »

What all does it do?
Report Spam   Logged

Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #2 on: September 15, 2007, 08:55:41 am »

Honestly, I don't know, it is just an affilight box or something.
Report Spam   Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy