自动滚动的实时代码(如 Twitter 的“热门推文") [英] An automatically scrolling live ticker (like the "Top Tweets" of Twitter)

查看:22
本文介绍了自动滚动的实时代码(如 Twitter 的“热门推文")的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一个很好的 Javascript 库可以生成像 Twitter 主页上的热门推文"这样的自动滚动列表?最好作为 jQuery 插件.它还应该支持 AJAX 功能(动态添加新的列表项).

Is there a good Javascript library for generating an automatically scrolling list like the "Top Tweets" on the Twitter homepage? Preferable as jQuery plugin. It should also support AJAX functionality (to add new list items dynamically).

推荐答案

由于我们对现有解决方案并不真正满意,因此我们从头开始实施.我们的解决方案是一个完全兼容 jQuery UI 的股票代码插件(也兼容他们的主题框架)并且经过了全面的单元测试.我们还没有时间在每个浏览器下测试它,所以欢迎反馈(如有问题,请在下面的 Github 项目站点上打开问题).

As we were not really satisfied with the existing solutions we implemented one from scratch. Our solution is a fully jQuery UI compatible ticker plugin (also compatible with their theming framework) and fully unit tested. We didn't yet have the time to test it under every browser, so feedback is welcome (for problems please open issues on the below Github project site).

特殊样式的演示(Twitter like) 可在此处获得.主要的主要存储库可以在这里找到(ticker 分支).有几个选项可以自定义股票代码(上述 Github 存储库中的文档).

A special styled demo (Twitter like) is available here. The main main repository can be found here (ticker branch). There are several options to customize the ticker (documentation at the above mentioned Github repository).

截图:

这篇关于自动滚动的实时代码(如 Twitter 的“热门推文")的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆