I am able to use this jquery function .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=====================
<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}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.