Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [JavaScript]efekt fade in
pa-jong
post 26.01.2012, 21:43:56
Post #1





Grupa: Zarejestrowani
Postów: 64
Pomógł: 1
Dołączył: 21.02.2008
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


Panowie, sprawa życia i śmierci..

jak moge połączyć rotator -->

  1. <script type="text/javascript">
  2. setInterval((function(images)
  3. {
  4. var index = -1, changeImage;
  5. changeImage = function()
  6. {
  7. index = (index + 1) % images.length;
  8. document.getElementById('banner').style.backgroundImage = 'url(' + images[index] + ')';
  9.  
  10. };
  11. changeImage();
  12. return changeImage;
  13. }([
  14. 'images/banner.jpg',
  15. 'images/bannerkuchnia.jpg',
  16. 'images/banner3.jpg',
  17. ])), 2000);



z efektem fade in ?

  1. document.getElementById('banner').fadeIn('fast');

Go to the top of the page
+Quote Post

Posty w temacie
- pa-jong   [JavaScript]efekt fade in   26.01.2012, 21:43:56
- - ActivePlayer   czy uzywasz jquery?   26.01.2012, 21:45:49
- - pa-jong   tak   26.01.2012, 21:58:21
- - ActivePlayer   Kod$("#banner").fadeOut(...   26.01.2012, 22:07:35
- - priver   Gdzie tu jest jak sie wpisuje nowy temat przycisz ...   26.01.2012, 22:18:28
- - pa-jong   hmm efekt może nie taki jak planowałem ale jakoś t...   26.01.2012, 22:25:10


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

 



RSS Wersja Lo-Fi Aktualny czas: 19.07.2025 - 21:08