Flexslider-通过点击进入下一张幻灯片 [英] Flexslider - advance to next slide via on click

查看:97
本文介绍了Flexslider-通过点击进入下一张幻灯片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

希望有人可以帮助我解决Flexslider问题.

hoping someone can help me with a Flexslider question.

以下是指向滑块的链接:

Here's a link to the slider:

http://www.findspace.co.uk/FINDSPACE2014/pages/3bed_biddrdb.html

我真的很想添加一个onlick功能,以便用户可以单击当前的主要大图像并前进到下一张幻灯片.我不介意是否需要通过方向箭头来实现这一目标.我想它还需要回到序列末尾的初始幻灯片.

I would really like to add an onlick function so that users can click on the current main large image and advance to the next slide. I don't mind if the directional arrows need to come off to achieve this. I guess it would need to also go back to the initial slide at the end of the sequence.

任何帮助将不胜感激.

安东尼

推荐答案

这就是您的方法

$('.flexslider').flexslider({
directionNav : false,
slideshow: false,
animation: "slide",
controlsContainer: ".flex-container",
start: function(slider) {
$('.slides li img').click(function(event){
    event.preventDefault();
    slider.flexAnimate(slider.getTarget("next"));
});
}
});

:)

这篇关于Flexslider-通过点击进入下一张幻灯片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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