哪里可以找到免费的jquery newsticker插件

时间:2015-08-18 14:28:12

标签: jquery-plugins news-ticker

我需要类似这样的http://www.jqueryscript.net/demo/jQuery-Plugin-For-Horizontal-Text-Scrolling-Simple-Marquee/,但是使用prev和next控件(并且免费,我在CodeCanyon上看过一些)。有什么建议吗?

1 个答案:

答案 0 :(得分:1)

jQuery News Ticker是一个开源库,可以滚动,具有前进和后退控制,以及暂停等高级功能。希望这会有所帮助..

http://www.jquerynewsticker.com/

该网站详细解释,但以下是您的所有细粒度选项:

$(function () {
    $('#js-news').ticker(
        speed: 0.10,           // The speed of the reveal
        ajaxFeed: false,       // Populate jQuery News Ticker via a feed
        feedUrl: false,        // The URL of the feed
                           // MUST BE ON THE SAME DOMAIN AS THE TICKER
        feedType: 'xml',       // Currently only XML
        htmlFeed: true,        // Populate jQuery News Ticker via HTML
        debugMode: true,       // Show some helpful errors in the console or as alerts
                           // SHOULD BE SET TO FALSE FOR PRODUCTION SITES!
        controls: true,        // Whether or not to show the jQuery News Ticker controls
        titleText: 'Latest',   // To remove the title set this to an empty String
        displayType: 'reveal', // Animation type - current options are 'reveal' or 'fade'
        direction: 'ltr'       // Ticker direction - current options are 'ltr' or 'rtl'
        pauseOnItems: 2000,    // The pause on a news item before being replaced
        fadeInSpeed: 600,      // Speed of fade in animation
        fadeOutSpeed: 300      // Speed of fade out animation
    );
});