首页 相关文章 jquery tools 系列 scrollable(2)

jquery tools 系列 scrollable(2)

scrollable提供的一系列获取scrollable对象的方法具体使用方式如下:
代码如下:
var scrollable=$("div.scrollable").scrollable();
//alert(scrollable.getConf().prev);//获取配置对象中的prev属性
scrollable.getConf().speed=200;//设置配置对象的speed属性
//alert(scrollable.getIndex());//获取当前滚动项的索引
//alert(scrollable.getItems().length);//获取当前滚动项的数量
//alert(scrollable.getItemWrap().html());//获取包含滚动项的节点(class=scrollable),并将所有滚动项显示出来
//alert(scrollable.getPageAmount());//获取当前滚动栏分页数
//alert(scrollable.getPageIndex());//获取当前所在分页
//alert(scrollable.getRoot().ht...[ 查看全文 ]

2016-02-19 标签:

jquery tools 系列 scrollable(2)的相关文章

手机页面
收藏网站 回到头部