views:

47

answers:

1

Hello.

I'm looking for a pseudo-marquee with jquery, looking like the one on the twitter home page. The ideal features would be :

  • Using an HTML list to work
  • Updating with Ajax when less than X elements remains to display
  • Stopping on mouse over with callback

Does that exist somewhere, or should I just create it myself ? Thanks.

+1  A: 

There are some great plugins for this, not necessarily using lists.

There's also this one, which uses a sliding or fading effect...but could be tweaked into animating in another way. It can be used on lists.

A plugin like jQuery Marquee will not carry out the Ajax for you, but it could be easily modified using other jQuery methods to update live.

The biggest thing to remember here is that if you set up your Ajax on an interval and continually modify the marquee's source DOM elements in the Ajax callback, you can achieve this effect without having to make yourself too crazy.

Trafalmadorian
Thanks. In fact, I would need one which displays multiple elements at the same time (like Twitter in fact) and not just one.I'll see if I can modify one in that way...
Pierre