Jquery循环插件不暂停
我有一个有趣的问题...我创建了一个特色内容滑块,它触发每张幻灯片的子幻灯片...除了寻呼机上的暂停之外,一切都按预期进行。我尝试过本机选项以及将悬停事件绑定到寻呼机。任何帮助将不胜感激。
函数子循环(){
$("#inside-tabs").html("");
$('#' + this.id + ' ul').cycle({
fx: 'fade',
speed: 'fast',
timeout: 3000,
pagerEvent: 'mouseover',
pager: '#inside-tabs',
allowPagerClickBubble: true,
pause: 1,
pauseOnPagerHover: true,
pagerAnchorBuilder: function(idx, slide) {
var link = $('#' + slide.id + ' h4 a').attr("href");
return '<li><a href="'+ link +'">' + slide.title + '</a></li>';
}
});
}
$('#page-banner ul').cycle({
before: subCycle,
slideExpr: '.parent-page',
fx: 'fade',
speed: 'fast',
timeout: 9000,
pagerEvent: 'mouseover',
pager: '#outside-tabs',
allowPagerClickBubble: true,
pause: 1,
pauseOnPagerHover: true,
pagerAnchorBuilder: function(idx, slide) {
var link = $('#' + slide.id + ' h3 a').attr("href");
return '<li><a href="'+ link +'">' + slide.title + '</a></li>';
}
});
I have an interesting issue... I created a featured content slider that triggers a sub slideshow for each slide... Everything works as expected except the pause on the pagers. I've tried the native options as well as binding a hover event to the pager. Any help would be appreciated.
function subCycle(){
$("#inside-tabs").html("");
$('#' + this.id + ' ul').cycle({
fx: 'fade',
speed: 'fast',
timeout: 3000,
pagerEvent: 'mouseover',
pager: '#inside-tabs',
allowPagerClickBubble: true,
pause: 1,
pauseOnPagerHover: true,
pagerAnchorBuilder: function(idx, slide) {
var link = $('#' + slide.id + ' h4 a').attr("href");
return '<li><a href="'+ link +'">' + slide.title + '</a></li>';
}
});
}
$('#page-banner ul').cycle({
before: subCycle,
slideExpr: '.parent-page',
fx: 'fade',
speed: 'fast',
timeout: 9000,
pagerEvent: 'mouseover',
pager: '#outside-tabs',
allowPagerClickBubble: true,
pause: 1,
pauseOnPagerHover: true,
pagerAnchorBuilder: function(idx, slide) {
var link = $('#' + slide.id + ' h3 a').attr("href");
return '<li><a href="'+ link +'">' + slide.title + '</a></li>';
}
});
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这已解决...解决方案是
This was resolved... The solution was