ich hab hier en Script von ner Bildershow! Das Problem ist das nur das erste Bild funktioniert! Ich finde keinen Fehler! Woran kann es liegen?
QUELLTEXT
<script type="text/javascript">
<!--
var play = 1;
var zeit = 5000;
testurl = new Array();
testurl[1]="images/marder2.jpg";
testurl[2]="images/savy.jpg";
testurl[3]="images/marder1.jpg";
testurl[4]="images/rs4.jpg";
testurl[5]="images/marder3.jpg";
testurl[6]="images/mugen.jpg";
var totalpictures=testurl.length-1;
var pictures=totalpictures;
function start() {
checkQuer();
timedelay();
}
function slideshowupdate(imgName,controls) {
if (play == 1) {
slidesslideshow = new Image();
slidesslideshow.src = testurl[pictures];
slideshow = eval(imgName + "slideshow.src");
document[imgName].src = slideshow;
pictures=pictures + 1;
if (pictures > totalpictures) pictures=1;
if (controls != 1) timedelay();
return;
};
timedelay();
return;
};
function timedelay() {
timerID = setTimeout("slideshowupdate('slides',0)",zeit);
};
function cplay() {
play=1;
};
function cbegin() {
if (play == 0) {
play=1;
pictures=1;
slideshowupdate('slides');
play=0;
return;
};
pictures=1;
slideshowupdate('slides',1);
};
function cprev() {
if (play == 0) {
play=1;
if (pictures < 3) pictures=pictures+totalpictures;
pictures=pictures-2;
slideshowupdate('slides',1);
play=0;
return;
}
if (pictures < 3) pictures=pictures+totalpictures;
pictures=pictures-2;
slideshowupdate('slides',1);
};
function cnext() {
if (play == 0) {
play=1;
slideshowupdate('slides',1);
play=0;
return;
};
slideshowupdate('slides',1);
};
function cend() {
if (play == 0) {
play=1;
pictures=totalpictures;
slideshowupdate('slides',1);
play=0;
return;
};
pictures=totalpictures;
slideshowupdate('slides',1);
};
function cstop() {
play=0;
};
//-->
</script>
Hier steht beliebiger Inhalt von dir.
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td colspan="4" style="border:2px solid black; width: 220px; height: 194px;">
<img src="images/marder2.jpg" name="slides" border=0 width="100%" height="100%">
</td>
</tr>
<tr style="height: 50px; text-align: center;">
<td style="background-color:#aaaaaa; border:1px solid #cccccc; width:25%">
<a href="javascript: cprev()"><img src="ampelgn_l.gif" border=0 width="50" height="100%"></a>
</td>
<td style="background-color:#aaaaaa; border:1px solid #cccccc; width:25%">
<a href="javascript: cstop()"><img src="ampelrot.gif" border=0 width="50" height="100%"></a>
</td>
<td style="background-color:#aaaaaa; border:1px solid #cccccc; width:25%">
<a href="javascript: cplay()"><img src="trabbi.gif" border=0 width="50" height="100%"></a>
</td>
<td style="background-color:#aaaaaa; border:1px solid #cccccc; width:25%">
<a href="javascript: cnext()"><img src="ampelgn_r.gif" border=0 width="50" height="100%"></a>
</td>
</tr>
</table>
<script type="text/javascript">
<!--
timedelay();
//-->
</script>
<!--
var play = 1;
var zeit = 5000;
testurl = new Array();
testurl[1]="images/marder2.jpg";
testurl[2]="images/savy.jpg";
testurl[3]="images/marder1.jpg";
testurl[4]="images/rs4.jpg";
testurl[5]="images/marder3.jpg";
testurl[6]="images/mugen.jpg";
var totalpictures=testurl.length-1;
var pictures=totalpictures;
function start() {
checkQuer();
timedelay();
}
function slideshowupdate(imgName,controls) {
if (play == 1) {
slidesslideshow = new Image();
slidesslideshow.src = testurl[pictures];
slideshow = eval(imgName + "slideshow.src");
document[imgName].src = slideshow;
pictures=pictures + 1;
if (pictures > totalpictures) pictures=1;
if (controls != 1) timedelay();
return;
};
timedelay();
return;
};
function timedelay() {
timerID = setTimeout("slideshowupdate('slides',0)",zeit);
};
function cplay() {
play=1;
};
function cbegin() {
if (play == 0) {
play=1;
pictures=1;
slideshowupdate('slides');
play=0;
return;
};
pictures=1;
slideshowupdate('slides',1);
};
function cprev() {
if (play == 0) {
play=1;
if (pictures < 3) pictures=pictures+totalpictures;
pictures=pictures-2;
slideshowupdate('slides',1);
play=0;
return;
}
if (pictures < 3) pictures=pictures+totalpictures;
pictures=pictures-2;
slideshowupdate('slides',1);
};
function cnext() {
if (play == 0) {
play=1;
slideshowupdate('slides',1);
play=0;
return;
};
slideshowupdate('slides',1);
};
function cend() {
if (play == 0) {
play=1;
pictures=totalpictures;
slideshowupdate('slides',1);
play=0;
return;
};
pictures=totalpictures;
slideshowupdate('slides',1);
};
function cstop() {
play=0;
};
//-->
</script>
Hier steht beliebiger Inhalt von dir.
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td colspan="4" style="border:2px solid black; width: 220px; height: 194px;">
<img src="images/marder2.jpg" name="slides" border=0 width="100%" height="100%">
</td>
</tr>
<tr style="height: 50px; text-align: center;">
<td style="background-color:#aaaaaa; border:1px solid #cccccc; width:25%">
<a href="javascript: cprev()"><img src="ampelgn_l.gif" border=0 width="50" height="100%"></a>
</td>
<td style="background-color:#aaaaaa; border:1px solid #cccccc; width:25%">
<a href="javascript: cstop()"><img src="ampelrot.gif" border=0 width="50" height="100%"></a>
</td>
<td style="background-color:#aaaaaa; border:1px solid #cccccc; width:25%">
<a href="javascript: cplay()"><img src="trabbi.gif" border=0 width="50" height="100%"></a>
</td>
<td style="background-color:#aaaaaa; border:1px solid #cccccc; width:25%">
<a href="javascript: cnext()"><img src="ampelgn_r.gif" border=0 width="50" height="100%"></a>
</td>
</tr>
</table>
<script type="text/javascript">
<!--
timedelay();
//-->
</script>
-Danke Didy
PS: Dies is für ne Homepage von mir und nem Freund! Nicht die von vorherigen Themen!