jQuery 插件 - 简单的功能帮助
我正在使用 这个 jQuery 插件 在我的网站上呈现一种“功能列表”我正在努力。这个插件非常简单,并且有效地完成了此演示所示的功能。
不过,我想在此实现一个功能。我希望能够在每个选项卡的内容区域中放置“上一个”和“下一个”链接,以切换到上一组或下一组内容。
任何人都可以提供一些帮助,说明如何使用此 jQuery 插件实现此功能?
非常感谢您能够提供的任何帮助...
I'm using this jQuery Plugin to present a sort of "features list" on a website I'm working on. This plugin is pretty straightforward and effectively does just what this demo shows.
There is one piece of functionality I would like to implement in this, however. I would like to be able to put a "previous" and "next" link in the content area of each tab, to switch to the, well, previous or next set of content.
Can anyone offer some help in what should be done to implement this functionality with this jQuery Plugin?
Thanks so much for any assistance you may be able to offer...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您只需添加调用
.click()
previous/next 链接即可code> (相当于.trigger('click')
右侧选项卡元素上的演示 →
标记、CSS 和 JS 与中链接的演示相同。除了以下问题:
HTML
CSS
JavaScript
如果您了解 jQuery 插件的编写方式,那么将此代码合并到插件中应该很容易,我不确定您是否想要一次性解决方案,或者进行更改。插件本身。
You just need to add
previous/next
links that call.click()
(the equivalent of.trigger('click')
on the right tab element.Demo →
Markup, CSS, and JS are identical to the demo linked in the question except for the following:
HTML
CSS
JavaScript
If you understand how jQuery plugins are written, it should be quite easy to incorporate this code into the plugin. I'm not sure if you wanted a one-off solution, or a change to the plugin itself.