2012-11-10 25 views

回答

0

我最終在javascript中添加了自己的功能。我又增加了選項$ .fn.liquidSlider.options這成爲我的自定義回調函數:

$.fn.liquidSlider.options = { 
... 
swipe: true, 
swipeArgs: undefined, 
customCallback: function(currentSlide) {} 
}; 

然後在setNextPanel函數可以調用自定義的回調與當前選定的面板:

setNextPanel: function(direction) { 
... 
    self.options.customCallback(self.nextPanel); 
}