Stopping the jquery cycle plugin

拟墨画扇 提交于 2019-12-20 05:46:12

问题


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
 });
});

回答1:


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

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.

They say: nowrap: 1



来源:https://stackoverflow.com/questions/4822191/stopping-the-jquery-cycle-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!