Hallo Jörg,
vielen lieben Dank für die Ausführliche Erklärung.
Soweit habe ich alles verstanden. Ein Problem ist schonmal gelöst:
Die Slideshow beginnt von selbst. Ich habe es mit dem <body onload..> gelöst.
Die Endlosschleife klappt allerdings nicht. Haben wir da noch irgendwas übersehen? Ich habe jetzt folgenden Code:
[...
<script type="text/javascript">
function fade(step)
{
var imgs = document.getElementById("slideshow").getElementsByTagName("img");
step = step || 0;
imgs[counter].style.opacity = step/100;
imgs[counter].style.filter = "alpha(opacity=" + step + ")"; //
step = step + 2;
if (step <= 100)
{
window.setTimeout(function () { fade(step); }, 1);
}
else
{
window.setTimeout(next, 2000);
}
}
function next()
{
var imgs = document.getElementById("slideshow").getElementsByTagName("img");
if (typeof(counter) != "number")
{
counter = 0;
}
counter++;
if (counter >= imgs.length)
{
counter=0;
}
fade();
};
</script>
...]
Das letzte Bild bleibt einfach stehen und nichts weiter passiert.
Auch mit next(1000); im Body-Tag funzt es nicht.
Wofür genau steht jetzt nochmal die 1000?
Gruß Frank