Banner and text link jumble

Ace

Madly Diligent
Joined
Sep 12, 2010
Messages
6,079
Reaction score
0
FP$
6
Can someone give me the html for a banner jumble and text link jumble?

Ace
 
I don't know the code for any banner jumbles but this is the link jumble I know of, although I would imaging it is very similar.

Code:
<script>var jumble = new Array();jumble[0]=
["YOUR LINK HERE","TEXT HERE"];jumble[1]=
["YOUR LINK HERE","TEXT HERE"];jumble[2]=
["YOUR LINK HERE"," TEXT HERE"];jumble[3]=
["YOUR LINK HERE"," TEXT HERE!"];jumble[4]=
[" YOUR LINK HERE"," TEXT HERE"];jumble[5]=
[" YOUR LINK HERE"," TEXT HERE"];jumble[6]=
[" YOUR LINK HERE"," TEXT HERE"];jumble[7]=
[" YOUR LINK HERE"," TEXT HERE"];jumble[8]=
[" YOUR LINK HERE"," TEXT HERE"];jumble[9]=
[" YOUR LINK HERE"," TEXT HERE"];for( i=0; i<jumble.length; i++){size = 8+(Math.random()*10);if( size < 9 ){color = '#18ad94'}else if( size > 9 && size < 11 ){color = '#207ac9'}else if( size > 12 && size < 13 ){ color = '#62D610'}else if( size > 14 && size < 16 ){ color = '#baB229'}else{color = '#c753b6';}document.write("<span style='font-size:"+size+"px;margin: 40px;'>");document.write("<a href='"+jumble[i][0]+"' style='color:"+color+";text-decoration: none;' target='_blank'>"+jumble[i][1]+"</a>"); document.write("</span> ");}</script>
 
Try this for the banner rotator:

Code:
<script language="JavaScript">

<!-- Begin
var how_many_ads = 3;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
url="#";
alt="Alt Text";
banner="Banner One";
width="468";
height="60";
}
if (ad==2) {
url="##";
alt="Alt Text";
banner="Banner Two";
width="468";
height="60";
}
if (ad==3) {
url="###";
alt="Alt Text";
banner="Banner Three";
width="468";
height="60";
}

document.write('<a href=\"' + url + '\" target=\"_blank\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0></a>');
// End -->
</script>

If you want to add more than 3 banners to 5 for example, change:
Code:
var how_many_ads = 3;

Change only the number 3, replacing it with 5.

Then after:

Code:
if (ad==3) {
url="###";
alt="Alt Text";
banner="Banner Three";
width="468";
height="60";
}

Add:

Code:
if (ad==4) {
url="####";
alt="Alt Text";
banner="Banner Four";
width="468";
height="60";
}

if (ad==5) {
url="#####";
alt="Alt Text";
banner="Banner Five";
width="468";
height="60";
}
 
Back
Top Bottom