实时滚动股票行情指示器
Looking for a scrolling stock ticker, as seen here: http://www.bloomberg.com/ - preferably run in combination with jQuery liScroller.
How would I go about this? RSS? Any costs involved?
Recommendations welcome.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您打算使用像 liScroller 这样的插件来为您做股票行情,那应该不会有太大麻烦。
在此之前您要做的就是在执行插件函数之前将您希望股票滚动的内容扔到页面上。
我不确定您想要获得什么信息,但您很可能可以通过 RSS 提要获取信息。
您可以使用 jquery 解析 rss feed,sins rss 只是一个 xml 文件。以下是文档 http://api.jquery.com/jQuery.parseXML/
If your going to use a plugin like liScroller to do the ticker for you than that should not be that much of an hassle.
What you have to do before that is to get the content you want the ticker to scroll throw onto the page before you execute the plugin functions.
I'm not sure what information you want to get, but its likely you can get in on an RSS feed.
You can use jquery to parse the rss feed, sins rss is just an xml file. Here are the documentation http://api.jquery.com/jQuery.parseXML/