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.