Hallo,
ein Kumpel hat mir ein Java Script geschrieben, mit dem ein bannerwechsel erfolgt. Hat auch soweit alles Funktioniert, nur beim Firefox wird mir der Falsche link angezeigt. Im IE funktioniert es perfekt.
Kann mir da vielleicht jemand helfen?
Script:
<head>
<script language="JavaScript">
<!--
window.setTimeout("anderesbild()", 10);
function anderesbild()
{
var alle = new Array(
"http://www.caseking.info/banner/banner22.gif",
"http://www.hug.de/webshopbilder/rot_banner_3800dn.gif",
"http://banner.alphacool.de/468x60_alphacool2.gif",
"http://banner.raba.tt/computer/aktion/aktion-486x60-c.gif",
"http://www.sunnysales.biz/blume2000/frueh05/3/468x60_saison.gif",
"http://www.kabelmeister.de/bilder/kabel8.gif",
"http://shop.kotel.de/partner/banner/Juni2006/1114_468_60_3250.gif",
"http://banner.alphacool.de/468x60_alphacool3.gif",
"http://banner.raba.tt/computer/299/299-468x60-d.gif",
"http://www.caseking.info/banner/30_07_05/caseking_banner_468x60_a.gif",
"http://www.hug.de/webshopbilder/rot_banner_4700n.gif",
"http://www.sunnysales.biz/blume2000/frueh05/03/468x60_danke.gif",
"http://www.kabelmeister.de/bilder/kabel13.gif",
"http://shop.kotel.de/partner/banner/sept2006/x640_playstation_tp_468_60.gif");
var links = new Array(
"http://james.adbutler.de/click.php?pid=4159&tid=144989&bid=14374",
"http://james.adbutler.de/click.php?pid=9887&tid=144989&bid=57310",
"http://james.adbutler.de/click.php?pid=9215&tid=144989&bid=43311",
"http://james.adbutler.de/click.php?pid=7096&tid=144989&bid=41949",
"http://james.adbutler.de/click.php?pid=3562&tid=144989&bid=12072",
"http://james.adbutler.de/click.php?pid=5679&tid=144989&bid=20467",
"http://james.adbutler.de/click.php?pid=9033&tid=144989&bid=55728",
"http://james.adbutler.de/click.php?pid=9215&tid=144989&bid=43314",
"http://james.adbutler.de/click.php?pid=7096&tid=144989&bid=26324",
"http://james.adbutler.de/click.php?pid=4159&tid=144989&bid=45059",
"http://james.adbutler.de/click.php?pid=9887&tid=144989&bid=57309",
"http://james.adbutler.de/click.php?pid=3562&tid=144989&bid=56045",
"http://james.adbutler.de/click.php?pid=5679&tid=144989&bid=20463",
"http://james.adbutler.de/click.php?pid=9033&tid=144989&bid=53897" );
var anzahl = alle.length;
var wahl = Math.round( Math.random() * ( anzahl - 1 ) );
var b = new Image();
b.src = alle[wahl];
document.images.das_bild.src = b.src;
document.all.der_anker.href = links[wahl];
}
//-->
</script>
</head>
<body>
<p />
<p align="center"><font face="Verdana" size="2">{$greeting}</font></p>
<p align="center"><a href="" id="der_anker" target="_blank">
<img src="" id="das_bild" border="0" /></a></p>
.....
zusehen auf der Internetseite www.profi-printer.de
Gruß Alina