Pierre
Pierre

Reputation: 6172

Live-updating jquery marquee

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

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

Upvotes: 2

Views: 1775

Answers (2)

Donato
Donato

Reputation: 2777

This is what ultimately worked for me:

 http://www.givainc.com/labs/marquee_jquery_plugin.cfm

When you want to update the list

  • elements, simply call the update function:

    $("#id").marquee("update")
    

    Upvotes: 2

  • Trafalmadorian
    Trafalmadorian

    Reputation: 2538

    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.

    Upvotes: 1

    Related Questions