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

5

8

I am looking for a little bit of JQuery or JS that allows me to produce a horizontally scrolling "news ticker" list.

The produced HTML needs to be standards compliant as well.

I have tried liScroll but this has a habit of breaking (some content ends up on a second line at the start of the scroll), especially with longer lists.

I have also tried this News Ticker but when a DOCTYPE is included the scrolling will jolt rather than cycle smoothly at the end of each cycle.

Any suggestions are appreciated.

Edit

So thanks to Matt Hinze's suggestion I realised I could do what I wanted to do with JQuery animate (I require continuous scrolling not discrete scrolling like the example). However, I quickly ran into similar problems to those I was having with liScroll and after all that realised a CSS issue (as always) was responsible.

Solution: liScroll - change the default 'var stripWidth = 0' to something like 100, to give a little space and avoid new line wrapping.

Adduction answered 3/9, 2008 at 1:33 Comment(0)
S
5

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.

Seymore answered 14/5, 2009 at 19:24 Comment(0)
R
2

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

  1. newsticker
  2. News ticker (BBC style)
Regression answered 4/9, 2008 at 4:6 Comment(0)
V
0

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.

Vasoconstrictor answered 9/12, 2011 at 15:17 Comment(0)
V
0

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 ;)

Vacuity answered 14/11, 2016 at 18:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.