IPB

Willkommen, Gast ( Anmelden | Registrierung )

> Bildershow_script Fehler
Didy
Beitrag 27.10.2004 - 21:11
Beitrag #1


is getting harder


Gruppe: User
Beiträge: 28
Mitglied seit: 09.10.2004
Mitglieds-Nr.: 3.848



Hallo Leute,
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>


-Danke Didy icon13.gif
PS: Dies is für ne Homepage von mir und nem Freund! Nicht die von vorherigen Themen!
Go to the top of the page
 
+Quote Post

Beiträge in diesem Thema


Reply to this topicStart new topic
1 Besucher lesen dieses Thema (Gäste: 1 | Anonyme Besucher: 0)
0 Mitglieder:

 



RSS Vereinfachte Darstellung Aktuelles Datum: 08.07.2025 - 23:27

taschenkalender
expertise-panel IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here