Habe hier mal mein Script beigefügt.
Ich habe das Problem, das das erste Bild in meiner Diashow übermäßig lange gezeigt wird, bevor Bild2, Bild3 usw. danach folgen. Ab dem 2. Bild passt die Anzeigedauer.
Im 2. Duchlauf stimmt alles wieder vom ersten Bild an. Wo liegt der Fehler? Hab leider null Ahnung von diesem Script: ???
<p align="center"><!--webbot bot="HTMLMarkup" startspan --><script language="JavaScript1.2">
var agt = navigator.userAgent.toLowerCase();
var dom = (document.getElementById) ? true : false;
var ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;
var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
var ns4 = (document.layers && !dom) ? true : false;
var ie4 = (document.all && !dom) ? true : false;
var nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false;
var is_win = ((agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1)) ? true : false;
var maxImages = 1;
var maxImages = 2;
var maxImages = 3;
var maxImages = 4;
var maxImages = 5;
var maxImages = 6;
var activeImage = 1;
function fnToggle() {
if (is_win && ie5)
{
prvImageContainer.filters[0].Apply();
document.getElementById("prvImage" + activeImage).style.visibility="hidden";
if (activeImage == maxImages) activeImage=1;
activeImage++;
document.getElementById("prvImage" + activeImage).style.visibility="visible";
prvImageContainer.filters[0].Play();
} else {
document.prvImage.src = img[activeImage].src;
activeImage++;
if (activeImage > maxImages) activeImage=1;
}
}
function beginTransitions() {
timerID = setInterval("fnToggle()", 9000); }
beginTransitions();
</script>
<script language="JavaScript">
if ((is_win) && (ie5))
{
document.write('<div id="prvImageContainer" style="position: relative; top: 0px; left: 0px; visibility: visible; width: 145px; height: 195px; filter:blendTrans(duration=2,overlap=1.0)" >');
document.write('<div id="prvImage1" style="position: absolute; top: 0px; left: 0px; visibility: visible; width: 145px; height: 195px"><img src="http://www.baby-kommt.de/minis/minicelina.jpg" width="145" height="195" border="0" alt="" /></div>');
document.write('<div id="prvImage2" style="position: absolute; top: 0px; left: 0px; visibility: hidden; width: 145px; height: 195px"><img src="http://www.baby-kommt.de/minis/minilisa.jpg" width="145" height="195" border="0" alt="" /></div>');
document.write('<div id="prvImage3" style="position: absolute; top: 0px; left: 0px; visibility: hidden; width: 145px; height: 195px"><img src="http://www.baby-kommt.de/minis/miniflo.jpg" width="145" height="195" border="0" alt="" /></div>');
document.write('<div id="prvImage4" style="position: absolute; top: 0px; left: 0px; visibility: hidden; width: 145px; height: 195px"><img src="http://www.baby-kommt.de/minis/nadi3.jpg" width="145" height="195" border="0" alt="" /></div>');
document.write('<div id="prvImage5" style="position: absolute; top: 0px; left: 0px; visibility: visible; width: 145px; height: 195px"><img src="http://www.baby-kommt.de/minis/klmini.jpg" width="145" height="195" border="0" alt="" /></div>');
document.write('<div id="prvImage6" style="position: absolute; top: 0px; left: 0px; visibility: visible; width: 145px; height: 195px"><img src="http://www.baby-kommt.de/minis/minicelina.jpg" width="145" height="195" border="0" alt="" /></div>');
document.write('</div>');
} else {
document.write('<img src="http://www.baby-kommt.de/bilder/textil.jpg" name="prvImage" width="145" height="195" border="0" alt="" />');
}
</script> <!--webbot bot="HTMLMarkup" endspan -->
Steffi-ruft-HILFE Gast |