【 tulaoshi.com - Web开发 】
                             
                            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().html());//获取滚动项的上一级节点(id=thumbs) 
//alert(scrollable.getSize()); 
//alert(scrollable.getVisibleItems().length);//获取当前可见滚动项数量 
scrollable.next();//如果有下一个滚动项,则跳转到下一个滚动项 
scrollable.prev(3000,function(){return true});//跳转到前一滚动项 
//var seekTo= scrollable.click(0).seekTo(2,1000,function(){ 
//alert(this.getIndex()); 
/