Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
带有链接的jQuery循环页面_Jquery_Cycle - Fatal编程技术网

带有链接的jQuery循环页面

带有链接的jQuery循环页面,jquery,cycle,Jquery,Cycle,我正在使用具有寻呼机功能的cycle插件,如下所示: $j('#homebox') .cycle({ fx: 'fade', speed: 'fast', timeout: 9000, pager: '#home-thumbs', pagerEvent: 'mouseover', pagerAnchorBuilder: function(idx, slide) {

我正在使用具有寻呼机功能的cycle插件,如下所示:

$j('#homebox') 
.cycle({
        fx:     'fade',
        speed:  'fast',
        timeout: 9000,
        pager:  '#home-thumbs',
        pagerEvent: 'mouseover',
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#home-thumbs li:eq(' + (idx) + ') a';
        }
    });
我想知道如何添加onclick函数,如果单击拇指,它们会将您带到相应的url。代码来自这里:


我通过在每个拇指上直接添加一个onclick事件来解决这个问题。

什么意思?带你到合适的URL?那么控件的用途是什么呢?我想你可能需要修改插件。。。控件仍在鼠标上切换图形,但当您单击拇指时,我希望它将用户带到新页面