Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [jQuery] Problem z metodą css
pehaperowiec
post
Post #1





Grupa: Zarejestrowani
Postów: 91
Pomógł: 8
Dołączył: 26.09.2011

Ostrzeżenie: (10%)
X----


Kod
$().ready(function() {
    var path            ="img/";
    var imgArray        =["img.JPG",
                             "img2.JPG",
                          "img3.JPG"];
    var imgArrayLength    =imgArray.length;
    
    function slider() {
        for(var i=0;i<imgArrayLength;i++) {
            $("#slider").css({"background:":"url('"+path+imgArray[i]+"') 0 0 no-repeat"});        
        }    
    }
    
    setInterval(slider, 2000);
});
Gdzie popełniłem błąd ?
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 2.10.2025 - 19:43