Code
<script language="JavaScript">
<!--
var RANDOM_BANNER = true;//true o.false eintragen(Reienfolge o.Zufall)
var UPDATE_FREQUENCY = 5;//sekundenwechsel
var imgH = "60";//größenangaben
var imgW = "468";//größenangaben
var target = "_blank";
var arrLinks = new Array();
arrLinks[0] = "http://partners.webmasterplan.com/click.asp?ref=42034&site=25&type=b1&bnb=1";
arrLinks[1] = "http://partners.webmasterplan.com/click.asp?ref=42034&site=2078&type=b1&bnb=1";
arrLinks[2] = "http://partners.webmasterplan.com/click.asp?ref=42034&site=203&type=b3&bnb=3";
arrLinks[3] = "http://www.amazon.de/exec/obidos/redirect-home?tag=traciswebseite&site=home";
arrLinks[4] = "http://www.strato.de/cgi-bin/partner.pl?id=824813&banner=skyDSLb.gif";
arrLinks[5] = "http://partners.webmasterplan.com/click.asp?ref=42034&site=345&type=b15&bnb=15";
arrLinks[6] = "http://partners.webmasterplan.com/click.asp?ref=42034&site=1397&type=b2&bnb=2";
arrLinks[7] = "http://partners.webmasterplan.com/click.asp?ref=42034&site=84&type=b1&bnb=1";
arrLinks[8] = "http://partners.webmasterplan.com/click.asp?ref=42034&site=1451&type=b1&bnb=1";
arrLinks[9] = "http://partners.webmasterplan.com/click.asp?ref=42034&site=1382&type=b12&bnb=12";
arrLinks[10] = "http://james.adbutler.de/click.php?pid=988&tid=43644&bid=3643";
var arrImages = new Array();
arrImages[0] = "http://www.webmasterplan.com/images/wmp1.gif";
arrImages[1] = "http://banners.webmasterplan.com/view.asp?site=2078&ref=42034&b=1";
arrImages[2] = "http://bubedame.de/img/banner3.gif";
arrImages[3] = "http://www.traci.de/javascript/amz_allgemein4_468x60_11f.gif";
arrImages[4] = "http://www.strato.de/partner/banner/skyDSLb.gif";
arrImages[5] = "http://www.adventis.de/sedo/expertengutachten.gif";
arrImages[6] = "http://banners.webmasterplan.com/view.asp?site=1397&ref=42034&b=2";
arrImages[7] = "http://www.software-laden.de/banner/slbanner468x40.gif";
arrImages[8] = "http://banners.webmasterplan.com/view.asp?site=1451&ref=42034&b=1";
arrImages[9] = "http://banners.webmasterplan.com/view.asp?site=1382&ref=42034&b=12";
arrImages[10] = "http://james.adbutler.de/view.php?pid=988&tid=43644&bid=3643&b=468&h=60";
var arrComments = new Array();
arrComments[0] = "Webmasterplan";
arrComments[1] = "partnerprogramme.de - Geld verdienen im Internet";
arrComments[2] = "Blind Dates bei Bubedame.de";
arrComments[3] = "In Partnerschaft mit Amazon.de";
arrComments[4] = "STRATO Partner Programm";
arrComments[5] = "sedo.de, Domainauktionen";
arrComments[6] = "Lovepoint - Professionelle Kontaktvermittlung";
arrComments[7] = "software-laden.de - Top Software online bestellen";
arrComments[8] = "WebMart - Interaktive Tools";
arrComments[9] = "eBay";
arrComments[10] = "Wir kaufen Ihre freien Werbeplätze !";
var updateBanner;
var COUNTER = 0;
var last = 0;
function buildBanner()
{
var randomNum;
if(RANDOM_BANNER)
{
randomNum = Math.floor(Math.random() * arrLinks.length);
while(randomNum == last)
randomNum = Math.floor(Math.random() * arrLinks.length);
last = randomNum;
}
var layer = (document.all)? document.all.bannerLayer : document.layers.bannerLayer.document.layers[0];
COUNTER = (RANDOM_BANNER)? randomNum : COUNTER;
var aLink = (arrLinks[COUNTER])? arrLinks[COUNTER] : "#";
var anImage = (arrImages[COUNTER])? arrImages[COUNTER] : "";
var aComment = (arrComments[COUNTER])? arrComments[COUNTER] : "";
var aTarget = (target)? target : "_top";
var bannertext = "<a href=\"" + aLink + "\" target=\"" + aTarget + "\">";
bannertext += "<img src=\"" + anImage + "\" border=0 alt=\"" + aComment + "\">";
bannertext += "</a>";
if(document.all)
layer.innerHTML = bannertext;
else
{
layer.resizeTo(imgW,imgH);
var doc = layer.document;
doc.open();
doc.write(bannertext);
doc.close();
}
}
//-->
</script>
<body onLoad="banner();" onUnload="clearInterval(updateBanner);">
<table align="center" border="0"><tr><td>
<div id="bannerLayer">
<ilayer name="bannerLayer"><layer visibility="show" width=&{imgW}; height=&{imgH}; ></layer></ilayer>
</div>
</td></tr></table>
<script>
<!--
function banner()
{
buildBanner();
COUNTER++;
COUNTER = (COUNTER == arrLinks.length)? 0 : COUNTER;
}
updateBanner = setInterval("banner()", (UPDATE_FREQUENCY * 1000));
//-->
</script>
Alles anzeigen