【问题标题】:Stopping the jquery cycle plugin停止 jquery 循环插件
【发布时间】:2011-01-28 05:44:07
【问题描述】:

我正在使用循环 jquery 插件。我有一些淡入淡出的图像,并希望它在循环结束时停止在最后一张图像上。有谁知道这样做的好方法?谢谢!

<script type="text/javascript"> 
$(document).ready(function() {
 $('.slideshow').cycle({
  fx: 'fade',
  timeout: 1000,
  speed:  500
 });
});

【问题讨论】:

    标签: jquery html jquery-cycle


    【解决方案1】:

    http://jquery.malsup.com/cycle/nowrap2.html

    我认为这将回答您的问题。 在循环插件的 API 网站上有很多像这样的好例子。

    他们说:nowrap: 1

    【讨论】:

    • 啊,正是我想要找到的!你给我带来了快乐。
    • API 非常方便 ;) 您只需检查该循环必须提供的所有 options。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多