【问题标题】:jQuery Cycle Intercepting ClicksjQuery 循环拦截点击
【发布时间】:2010-06-28 01:22:42
【问题描述】:

我正在使用 jquery Cycle 创建特色内容滑块。在我的寻呼机中,我有来自每个帖子的图像和指向永久链接的链接。我无法链接到该页面,但我希望这张图片能说明我在做什么:

我的问题是,当我单击右侧导航中的永久链接时,它们没有打开。链接形成正确,我可以右键单击并在新窗口中打开。似乎滑块将我的点击拦截为 JS 点击,而不是点击 acutaly href 链接。

有人遇到过这个问题吗?

这是我的 JS

    jQuery('#slideWrap').cycle({
    speed:       200, 
    timeout:     0, 
    pager:      '#featuredNav ul', 
    pagerEvent: 'mouseover',
    pagerAnchorBuilder: function(idx, slide) { 
    
    return '<li><img src="' + jQuery(slide).find(".featuredSlideImage > img").attr("src")  + '" height="50" width="75" />' + jQuery(slide).find(".featuredSlideDesc > h3").html()  + ' </li>'; 
    
} 
});     

【问题讨论】:

    标签: javascript jquery cycle jquery-cycle


    【解决方案1】:

    来自http://jquery.malsup.com/cycle/options.html,我建议尝试以下选项:

    允许PagerClickBubble

    并将其设置为 true 而不是默认值 false。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-12-20
      • 2011-02-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多