closer: HILFE

Beitrag lesen

Hab es jetzt so versucht...:

<script type="text/javascript">
var currentphoto = 1;
function slideshow(){

// the next picture
 var photonr = currentphoto + 1;

// display the next picture
 document.img[0].src = 'Tattoo-' + photonr + ".jpg";

currentphoto++;
}
</script>

Der Fehler scheint in der Zeile zu sein:
 document.img[0].src = 'Tattoo-' + photonr + ".jpg";
aber was hab ich da falsch gemacht??

MfG closer