[英]jQuery vTicker with vertical scroll bar
I am using jQuery vTicker, But I want the whole list which user can view using the scrollbar. 我正在使用jQuery vTicker,但是我想要用户可以使用滚动条查看的整个列表。 I don't want dynamic scroll bar.
我不需要动态滚动条。 Just a simple scroll bar.
只是一个简单的滚动条。 This is what I am doing.
这就是我在做什么。
HTML: HTML:
<div id="liveData" style="max-height: 490px; overflow: auto;">
<div class="live-feeds">
<ul>
<li>
/*Live data here*/
</li>
</ul>
</div>
</div>
JS: JS:
$('.live-feeds').vTicker({
speed: 800,
pause: 2000,
animation: 'fade',
height: 490,
mousePause: true,
showItems: 50
});
Does anyone have any idea how do I do this. 有谁知道我该怎么做。
add 加
direction:'down'
to your (.live-feeds).vTicker JS 到您的(.live-feeds).vTicker JS
your js should really be 你的js应该真的是
$(function() {$('#live-feeds').vTicker({
speed: 800,
pause: 2000,
showItems: 50,
animation:'fade',
mousePause:true,
height: 490,
direction:'down'
});
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.