网页不会停止加载

时间:2014-11-25 10:49:40

标签: javascript jquery html css

我最近在我的网页上添加了这一点jQuery,现在网站不会完成加载,旋转的圈子非常烦人。

有人可以帮忙吗?代码如下:

    (function() {

    var quotes = $(".quotes");
    var quoteIndex = 1;

    function showNextQuote() {
        ++quoteIndex;
        quotes.eq(quoteIndex % quotes.length)
            .fadeIn(1000)
            .delay(2000)
            .fadeOut(1000, showNextQuote);
    }

    showNextQuote();

})();

0 个答案:

没有答案
相关问题