2013-10-08 32 views
0
jQuery(function($) { 

      var buttons = { 
       previous: jQuery('#lofslidecontent45 .lof-previous'), 
       next: jQuery('#lofslidecontent45 .lof-next') 
      }; 

      window.setTimeout(function(){ 
     $obj = jQuery('#lofslidecontent45').lofJSidernews({ 
       interval: 4000, 
       direction: 'opacitys', 
       easing: 'easeInOutExpo', 
       duration: 1200, 
       auto: true, 
       maxItemDisplay: 3, 
       navPosition: 'horizontal', // horizontal 
       navigatorHeight: 40, 
       navigatorWidth: 70, 
       mainWidth: 1000, 
       buttons: buttons, 
       isPreloaded:false 
       }); 
      },500); 


     }); 

如何在悬停时配置暂停? 是有这个滑块的内容? 或有任何选项喜欢悬停:停止,..jquery lofJSidernews如何暂停悬停?

+0

这可以帮助您自定义控件http://rtl-this.com/tutorial/lof-jslidernews-jquery-plugin-now-rtl-support –

+0

这一停止悬停http:// rtl-this.com/sites/default/files/demos/lofslidernews/index.html –

+0

有什么选择停止滑动悬停? :) –

回答

0

有没有像hover: "stop"这样的配置。
但是,如果你在实际.js文件看,你会发现

$(obj).hover(function(){ 
    self.stop();  
    $buttonControl.addClass("action-start").removeClass("action-stop").addClass("hover-stop"); 
}, function(){ 
    if($buttonControl.hasClass("hover-stop")){  
     if(self.settings.auto){ 
      $buttonControl.removeClass("action-start").removeClass("hover-stop").addClass("action-stop"); 
       self.play(self.settings.interval,'next', true);  
     } 
    } 
}); 

这意味着,悬停停止功能默认情况下有。