我正在用Javascript进行幻灯片放映,它被卡在第二张图像上。如果您需要更多信息,请告诉我,请稍等。我真的需要修复此问题。

http://jsfiddle.net/QURLC/1/

Javascript:

function slideShow() {
      var showing = $('#slideshow a');
      var next = showing.next().length ? showing.next() : showing.parent().children(':first');
      var timer;

    showing.fadeOut(500, function() { next.fadeIn(200).addClass('show'); }).removeClass('show');

    setTimeout(slideShow, 3500);
}
$(document).ready(function(){
    slideShow();
});

最佳答案

此处已更新且正在工作demo

function slideShow() {

      var showing = $('#slideshow a.show');
      var next = showing.next().length ? showing.next() : showing.parent().children(':first');
      var timer;

      showing.fadeOut(500, function() { next.fadeIn(200).addClass('show'); }).removeClass('show');

      setTimeout(slideShow, 3500);

    }

关于javascript - JavaScript幻灯片显示卡住了,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/15399002/

10-09 00:09