我正在尝试创建轮播,并用悬停时的向左/向右箭头按钮替换标准光标,但是找不到有关如何实现此目的的任何参考
$(function(){
var owl = $('.owl-carousel');
owl.owlCarousel({
autoplay: 2000,
items:1,
loop: true,
onInitialized : counter, //When the plugin has initialized.
onTranslated : counter //When the translation of the stage has finished.
});
答案 0 :(得分:0)
对于版本1.3
$(document).ready(function() {
$("#owl-example").owlCarousel({
items:1,
loop:true,
autoplay:true,
autoplayTimeout:1000,
autoplayHoverPause:true,
navigation : true,
navigationText : ['<span class="fa-stack"><i class="fa fa-circle fa-stack-1x"></i><i class="fa fa-chevron-circle-left fa-stack-1x fa-inverse"></i></span>','<span class="fa-stack"><i class="fa fa-circle fa-stack-1x"></i><i class="fa fa-chevron-circle-right fa-stack-1x fa-inverse"></i></span>'],
});
});