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:
1 | The Tide Is High (Blondie)
(S - 1980) | 2 | Atom Heart Mother (Pink Floyd)
(LP - 1970) | 3 | Out Of The Blue (ELO)
(LP - 1977) | 4 | Hit The Road Jack (Ray Charles)
(S - 1961) | 5 | Śniadanie u Tiffany'ego ()
( - 1961) | 5 | Red (King Crimson)
(LP - 1974) | 10 | In the Court of the Crimson King (King Crimson)
(LP - 1969) | 11 | Without You (Harry Nilsson)
(S - 1971) | 11 | Far Far Away (Slade)
(S - 1974) | 22 | Led Zeppelin II (Led Zeppelin)
(LP - 1969) | 24 | Too Much Heaven (Bee Gees)
(S - 1978) | 28 | News of the World (Queen)
(LP - 1977) | 29 | Exit...Stage Left (Rush)
(LP - 1981) | 29 | The Girl Is Mine (Michael Jackson)
(S - 1982) | |