[英]Scrollable Contents
I am able to use this jquery function .scrollable();
我可以使用此jquery函数
.scrollable();
to scroll contents from right to left. 从右向左滚动内容。 However I will like the content to scroll from left to right.
但是,我希望内容从左向右滚动。 here is my code
这是我的代码
===================For the HTML===================== ===================对于HTML ======================
<div id="Ticker" >
<ul class="items">
<li class="item">content 1</li>
<li class="item">content 2</li>
<li class="item">content 3</li>
<li class="item">content 4</li>
</ul>
</div>
======================For Javascripts======================== ====================================================
<script src="jquery.js"></script>
<script language="JavaScript">
$(function() {
var api= $("#Ticker").scrollable({horizontal:true, speed:2000}).autoscroll({ autoplay:true});
});
在自动滚动属性中,尝试设置方向:
{autoplay: true, direction: right}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.