[英]jQuery Supersized Plugin callback when slideshow finishd
I am using the Supersized jQuery plugin which makes images fullscreen and also implements a slideshow. 我正在使用超大jQuery插件,该插件可使图像全屏显示并实现幻灯片显示。 Currently, this plugin does not have a callback for when the slideshow is finished, rather, it just continually repeats.
当前,此插件没有幻灯片播放结束时的回调,而是不断重复播放。
Is there a way that I could trigger a function after the last slide is shown? 有没有一种方法可以在显示最后一张幻灯片后触发功能?
Currently, I have it working to trigger a function when the last slide STARTS to be shown, as I have a setInterval which checks for the "last" class on the slideshow images. 目前,我正在努力触发要显示最后一张幻灯片的功能,因为我有一个setInterval来检查幻灯片图像上的“最后一个”类。 But, this runs the function when that last slide starts, not when it is finished.
但是,这在最后一张幻灯片开始时而不是在结束时运行该功能。
Does anyone have ideas on how I could accomplish this? 有人对我如何实现这一目标有想法吗?
I ended up just adding a .addClass('last'); 我最终只是添加了一个.addClass('last'); to my last image then when that was cued up, I fired my function.
到最后一张图片,然后提示时,我启动了功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.