jquery - 如何创建左/右箭头按钮作为轮播上的光标?
问题描述
我正在尝试创建一个轮播并在悬停时用左/右箭头按钮替换标准光标,但找不到任何关于如何实现这一点的参考
$(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.
});
解决方案
对于 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>'],
});
});
推荐阅读
- php - 如何使用 apache 和 mysql 安装 php mussum 版本
- php - 如何从不在同一网络中的另一台服务器访问数据
- heroku - Discord.py 重写“上下文”对象没有属性“发送”
- google-bigquery - bigquery 中的 listagg 函数替代
- json - 如何将 JSON Schema 传递给 Angular CLI 以生成自定义组件/表单
- spring - Spring Boot 字段观察者(观察者)或类似的东西
- asp.net-core - 基于环境变量在 .NET Core 测试项目中使用不同的配置
- linux - 无法在多阶段 Docker 构建中复制 MariaDB 数据目录
- c# - 如何在 C# 中为 Azure Function App 安装 SharePoint PowerShell 模块
- python - 如何实现 DEEPExpectation (DEX) 年龄检测?