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 | Rock Around the Clock (Bill Haley & His Comets)
(S - 1954) | 1 | You're the One That I Want (John Travolty & Olivia Newton-John)
(S - 1978) | 2 | That'll Be The Day (Buddy Holly)
(S - 1957) | 9 | Hello, Dolly! (Louis Armstrong)
(S - 1964) | 12 | A Whiter Shade of Pale (Procol Harum)
(S - 1967) | 13 | San Francisco (Be Sure to Wear Flowers in Your Hair) (Scott McKenzie)
(S - 1967) | 15 | In the Wake of Poseidon (King Crimson)
(LP - 1970) | 16 | Pet Sounds (Beach Boys)
(LP - 1966) | 17 | Rising (Rainbow)
(LP - 1976) | 25 | Tubular Bells (Mike Oldfield)
(LP - 1973) | 25 | Holy Diver (Dio)
(LP - 1983) | 27 | Crisis (Mike Oldfield)
(LP - 1983) | 31 | Discovery (ELO)
(LP - 1979) | |