Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用jQuery 工具
使用自动滚动的导航创建可滚动。现在自动滚动从左边的第一个项目开始(有意义)现在我的问题是如何使它成为 RTL?我相信让自动滚动从头到尾开始会更容易做到这一点。
有谁知道我到底是怎么做到的?
在此先感谢,埃里克
我不认为插件支持它......你将不得不修改它的代码。
这是 flowplayer 论坛的一个例子,
反向自动滚动
官方答案链接不再起作用。使用当前工具,在创建可滚动项#scroller 后,您会想要这样的东西:
$("#scroller").data("scrollable").next = function(time) { return this.move(-1, time); };
您正在覆盖“下一个”函数以向后移动而不是向前移动。这就是我们与自动滚动一起需要的全部内容,但您也可以使用“.prev”来反转方向。