停止jQuery循环插件 [英] Stopping the jquery cycle plugin

查看:73
本文介绍了停止jQuery循环插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am using the cycle jquery plugin. I have a few images that fade in and out and would like it to stop on the last image at the end of the cycle. Does anyone know a good way to do this? Thanks!

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

推荐答案

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

我认为这将回答您的问题. 循环插件的API网站上有很多不错的例子.

I think this will answer your question. There are a lot of nice examples like this one on the API site of the cycle plugin.

他们说:nowrap: 1

这篇关于停止jQuery循环插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆