-2

私はこれまでこれを見たことがありません:

ここに画像の説明を入力してください

<script type="text/javascript">
  $(document).ready(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
    );
  });
</script>

そのコードはの直前</head>です。そしてjQuery含まれています。

何が問題なのですか?

4

2 に答える 2

2

{}ティッカーに欠落している可能性があります:

<script type="text/javascript">
  $(document).ready(function() { 
    $('#js-news').ticker({
          speed: 0.10,           // The speed of the reveal
          ajaxFeed: false,       // Populate jQuery News Ticker via a feed
          direction: 'ltr'
           ...........//--^-------missing ','
          fadeOutSpeed: 300      // Speed of fade out animation
     });
   });
</script>

また、他の回答が,後に行方不明を示唆したようにdirection: 'ltr'

于 2013-03-22T07:39:29.697 に答える
1

,あなたは後を逃したdirection: 'ltr'

于 2013-03-22T07:38:41.493 に答える