What's a good bit of JS or JQuery for horizontally scrolling news ticker

丶灬走出姿态 提交于 2019-11-29 10:46:21

Smooth Div Scroll can also be used as a news ticker/stock ticker. It can pause on mouse over or mouse down and it can loop endlessly if you want it to.

Here's the example with a running ticker.

Here's 2 other solutions that seem a bit simpler to implement:

  1. newsticker
  2. News ticker (BBC style)

An Alternative solution would also be the jQuery webTicker; its very similar to liscroll however resolves the problem with the ticker stopping after the whole list completes; whilst also adding some new fancy features like; direction of movement; speed; and ability to use multiple tickers per page.

The second line bug arising in liscroll can be "fixed" by adding a listitem containing a non-breakable space entitiy <li>&nbsp;</li> at the end of each list ;)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!