Olałem ten skrypt, znalazłem o wiele lepszy http://dev.daledavies.co.uk/easyslides/, ma wszystko czego potrzebowałem i do tego nie ładuje wszystkich obrazków na raz.
Można uznać że problem rozwiązany.
----------------------------------------------------------------------
Mam gotowy skrypt i nie chcę aby tekst był w nim przeźroczysty, tylko tło ma mieć efekt przeźroczystości. Jak to zmodyfikować?
  1. <div id="top-right">
  2. <div id="slider">
  3. <a href="#" class="show">
  4. <img src="img/img-01.jpg" width="720" height="200" alt="tekst tekst tekst" />
  5. </a>
  6. <a href="#">
  7. <img src="img/img-02.jpg" width="720" height="200" alt="tekst tekst tekst" />
  8. </a>
  9. <a href="#">
  10. <img src="img/img-03.jpg" width="720" height="200" alt="tekst tekst tekst" />
  11. </a>
  12. <a href="#">
  13. <img src="img/img-04.jpg" width="720" height="200" alt="tekst tekst tekst" />
  14. </a>
  15. <div class="caption"><div class="content"></div></div>
  16. </div>
  17. </div>

  1. .clear {
  2. clear: both;
  3. }
  4. #top-right #slider {
  5. position: relative;
  6. height: 200px;
  7. }
  8. #top-right #slider a {
  9. float: left;
  10. position: absolute;
  11. }
  12. #top-right #slider a img {
  13. border: none;
  14. }
  15. #top-right #slider a.show {
  16. z-index: 500;
  17. }
  18. #top-right #slider .caption {
  19. z-index: 600;
  20. background-color: #000;
  21. color: #ffffff;
  22. height: 65px;
  23. width: 100%;
  24. position: absolute;
  25. bottom: 0;
  26. }
  27. #top-right #slider .caption .content {
  28. margin: 5px;
  29. }
  30. #top-right #slider .caption .content h3 {
  31. margin: 0;
  32. padding: 0;
  33. color: #1DCCEF;
  34. }

[JAVASCRIPT] pobierz, plaintext
  1. $(document).ready(function() {
  2. slideShow();
  3. });
  4.  
  5. function slideShow() {
  6.  
  7. //Set the opacity of all images to 0
  8. $('#top-right #slider a').css({opacity: 0.0});
  9.  
  10. //Get the first image and display it (set it to full opacity)
  11. $('#top-right #slider a:first').css({opacity: 1.0});
  12.  
  13. //Set the caption background to semi-transparent
  14. $('#top-right #slider .caption').css({opacity: 0.7});
  15.  
  16. //Resize the width of the caption according to the image width
  17. $('#top-right #slider .caption').css({width: $('#top-right #slider a').find('img').css('width')});
  18.  
  19. //Get the caption of the first image from REL attribute and display it
  20. $('#top-right #slider .content').html($('#top-right #slider a:first').find('img').attr('alt'))
  21. .animate({opacity: 0.7}, 400);
  22.  
  23. //Call the gallery function to run the slideshow, 6000 = change to next image after 6 seconds
  24. setInterval('gallery()',4000);
  25.  
  26. }
  27.  
  28. function gallery() {
  29.  
  30. //if no IMGs have the show class, grab the first image
  31. var current = ($('#top-right #slider a.show')? $('#top-right #slider a.show') : $('#top-right #slider a:first'));
  32.  
  33. //Get next image, if it reached the end of the slideshow, rotate it back to the first image
  34. var next = ((current.next().length) ? ((current.next().hasClass('caption'))? $('#top-right #slider a:first') :current.next()) : $('#top-right #slider a:first'));
  35.  
  36. //Get next image caption
  37. var caption = next.find('img').attr('alt');
  38.  
  39. //Set the fade in effect for the next image, show class has higher z-index
  40. next.css({opacity: 0.0})
  41. .addClass('show')
  42. .animate({opacity: 1.0}, 1000);
  43.  
  44. //Hide the current image
  45. current.animate({opacity: 0.0}, 1000)
  46. .removeClass('show');
  47.  
  48. //Set the opacity to 0 and height to 1px
  49. $('#top-right #slider .caption').animate({opacity: 0.0}, { queue:false, duration:0 }).animate({height: '1px'}, { queue:true, duration:300 });
  50.  
  51. //Animate the caption, opacity to 0.7 and heigth to 100px, a slide up effect
  52. $('#top-right #slider .caption').animate({opacity: 0.7},100 ).animate({height: '65px'},500 );
  53.  
  54. //Display the content
  55. $('#top-right #slider .content').html(caption);
  56.  
  57.  
  58. }
[JAVASCRIPT] pobierz, plaintext


Próbowałem w html'u zrobić tak
  1. <div class="caption"></div>
  2. <div class="content"></div>

Poprzestawiałem trochę w css, żeby #content był na wierzchu (z-index), ale pozostał problem ze skryptem, nie znam się na JS/jQuery więc w tym aspekcie nic nie modyfikowałem, tekst z #content się zmieniał (i nie był przeźroczysty) ale z animacji nici.
Może coś z RGBA, tyle że nie wiem jak wstawić to zamiast opacity.
------------------------------------------------------------------------------
Już wiem jak wstawić RGBA smile.gif wystarczyło wartość zamieścić w apostrofach.
[JAVASCRIPT] pobierz, plaintext
  1. background: 'rgba(0,0,0,0.5)'
[JAVASCRIPT] pobierz, plaintext

------------------------------------------------------------------------------
Jednak nie do końca problem rozwiązany: IE8 i starsze nie obsługują RGBA, próbowałem zastąpić to półprzeźroczystym tłem png, ale widocznie nie działa to z .animate(), bo pierwszy slajd jest ok ale reszta już tła nie posiada.