var x=1; // jako pierwszy w php wyświetla sie zerowy obrazek, wiec tu zaczynamy od kolejnego var nr_foto=1; function podmiana(tImg, iMax) { document.getElementById('obrazek').src = tImg[0][x]; document.getElementById('obrazek').width = tImg[1][x]; nr_foto = x+1; document.getElementById('licznik').innerHTML = "foto: " +nr_foto+" z "+iMax+" "; //document.getElementById('komentarz').innerHTML = tImg[2][x]; // zmienia zawartośc diva "komentarz" x++ if(x==iMax)x=0; }
Co nowego:
Najbardziej popularne z ostatnich dni:
3 | Master Of Puppets (Metallica)
(LP - 1986) | 22 | All Shook Up (Elvis Presley)
(S - 1957) | 24 | The Dark Side of the Moon (Pink Floyd)
(LP - 1973) | 25 | Machine Head (Deep Purple)
(LP - 1972) | 29 | The Number Of The Beast (Iron Maiden)
(LP - 1982) | |