如何使这个 jQuery 垂直新闻滚动条不重复/循环
I found this scroller that I would like to use, however, I want it to stop after showing the last item.
http://www.cre.lt/tadas/vticker.php
Is it possible?
Tracy
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我查看了代码,并且不支持完成后停止循环一次。我的意思是说没有这样的选项/设置可用于执行此操作。但是您可以使用相同的代码并进行调整来工作,我还没有尝试过这个,但请尝试注释行
first.appendTo(obj.children('ul'));
并查看。它应该显示一次并且不会重复。I looked at the code and there is no support for stopping after it is done looping once. I mean to say there is no such option/setting available for doing that. But you can use the same code and tweak to work, I haven't tried this one, but try commenting the line
first.appendTo(obj.children('ul'));
and see. It should show once and will not repeat.