Hallo,
ich habe folgenden Code:
i = 0;
hallo(i);function hallo(j)
{
zufall = Math.floor(Math.random()*banner.length);if (zufall < 0)
{
zufall = 0;
}
if (zufall >= banner.length)
{
zufall = banner.length - 1;
}document.write(zufall);
j++;
if (j < 3)
{
Wechsel = setTimeout('hallo(j)',2000);
}
}
bei dieser Variante kommt nach dem 1. Settimeout, daß j nicht definiert ist, ersetze ich j durchgängig durch i kommt: Methode erwartet. Ich weiß nicht, was das bedeuten soll...