通过外部链接更改 nivoslider 下一张幻灯片
我的页面上有 2 张幻灯片,它们是相关的,因此当其中一张发生更改时,另一张应该同时更改。因此我将间隔设置为相同。
现在,要单击下一个/上一个,我需要一个来更改第二个。
我做了这个:
$("#slider a.nivo-prevNav").live("click", function() {
TheKids = $("#slider2").children();
TheSettings = $("#slider2").settings;
$("#slider2").nivoRun($("#slider2"),TheKids,TheSettings,"prev");
});
但我从萤火虫中得到错误
$("#slider2").nivoRun 不是函数
有没有办法让它工作?
i have 2 slides on the page, they are releated so when 1 changes the other one should change on the same time. therefore i made the interval the same.
now for clicking next/prev i need one to change the second.
i have made this:
$("#slider a.nivo-prevNav").live("click", function() {
TheKids = $("#slider2").children();
TheSettings = $("#slider2").settings;
$("#slider2").nivoRun($("#slider2"),TheKids,TheSettings,"prev");
});
but i get error from firebug
$("#slider2").nivoRun is not a function
is there a way to make it work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设您想触发 slider2 的点击事件来匹配。
因此,假设#slider的图像0对应于#slider2的图像0。现在,当您单击#slider的上一个按钮时,它将模拟单击slider2的上一个按钮。
I am assuming you want to trigger slider2's click event to match.
So assuming that #slider's image 0 corresponds to #slider2's image 0. Now when you click on #slider's previous button, it will simulate a click on slider2's previous button.