2013-10-17 83 views
0

我使用simplyScroll v2,我有我的主頁2個滾動塊,但他們都以相同的速度滾動,我想改變速度塊:改變速度一個jQuery滾動

<script type="text/javascript"> 
    (function($) { 
      $(function() {      
       $("#scrollerv").simplyScroll({orientation:'vertical',customClass:'vert'}); 
      }); 
    })(jQuery); 
</script> 

我該如何管理?不用接觸JS文件。 Thx求救!

+0

嘗試在simplyScroll –

回答

1

從插件的documentation

速度,默認值:1,每幀的移動像素數,在「迴路」模式必須是由卷軸的總寬度

所以整除您的代碼需要:

$("#scrollerv").simplyScroll({ 
    orientation: 'vertical', 
    customClass: 'vert', 
    speed: 2 // increase to make faster 
}); 
+0

左右,最低速度速度選項,將在1? 每幀1px?我改爲1,我仍然認爲速度很快,需要慢一點。 –

+0

嘗試使用0.1 :) – Rex

+0

nope,已經嘗試過,根本不工作... :) –