View Single Post
Old 12-02-2004   #7
SuperSleeper
 
SuperSleeper's Avatar
 

Join Date: Jan 2004
Location: Apple Valley, MN
Drives: 2012 Audi S4
Posts: 860
Send a message via AIM to SuperSleeper
Check out this site... may have some resources for you.

http://www.zend.com/apps.php?CID=35

Otherwise try this code:

function randInt(min,max)
{
var div = (max - min) + 1
var randNum = Math.random()
for (var i = 0; i <= div - 1; i++)
{
if (randNum >= i / div && randNum < (i+1) / div)
{return i + min}
}
}


var abc = randInt(1,5);

if (abc == 1) {

document.write("<\"Your 1. HTML-Banner-Code\">");

}

if (abc == 2) {

document.write("<\"Your 2. HTML-Banner-Code\">");

}

if (abc == 3) {

document.write("<\"Your 3. HTML-Banner-Code\">");

}

if (abc == 4) {

document.write("<\"Your 4. HTML-Banner-Code\">");

}

if (abc == 5) {

document.write("<\"Your 5. HTML-Banner-Code\">");

}

The "document.write" function is Javascript, and probably not necessary for the code to work. Haven't tested the code though, so don't hold your breath.

Last edited by SuperSleeper; 12-02-2004 at 01:01 AM..
SuperSleeper is offline   Reply With Quote