2013-01-25 91 views
0

我正在使用jQuery vTicker,但我想要整个列表,用户可以使用滚动条查看。我不想动态滚动条。只需一个简单的滚动条。 这就是我正在做的。带垂直滚动条的jQuery vTicker

HTML:

<div id="liveData" style="max-height: 490px; overflow: auto;"> 
    <div class="live-feeds"> 
     <ul> 
      <li> 
      /*Live data here*/ 
      </li> 
     </ul> 
    </div> 
</div> 

JS:

$('.live-feeds').vTicker({ 
     speed: 800, 
     pause: 2000, 
     animation: 'fade', 
     height: 490, 
     mousePause: true, 
     showItems: 50 
    }); 

没有人有任何想法我怎么做到这一点。

+0

设置你的溢出滚动 –

回答

0

添加

direction:'down' 

你(.live的饲料).vTicker JS

您的js确实应该

$(function() {$('#live-feeds').vTicker({ 
     speed: 800, 
     pause: 2000, 
     showItems: 50, 
     animation:'fade', 
     mousePause:true, 
     height: 490, 
     direction:'down' 
     }); 
    }); 
+0

看到这个链接澄清如何设计它的样式http://mistonline.in/wp/jquery-news-ticker-with-unlimited-scrolling/ –

+0

感谢您的回复......我设置了溢出滚动和工作完成。我必须接受你的回答... –

+0

很酷,总是乐意帮忙。 :) –