JS实现touch 点击滑动轮播实例代码

前端之家收集整理的这篇文章主要介绍了JS实现touch 点击滑动轮播实例代码前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

@H_404_0@废话不多说了,直接给大家贴js代码了,具体代码如下所示:


<div class="jb51code">
<pre class="brush:js;">
<script src="../js/jquery-1.8.3.min.js">
<script src="../js/jQuery.mobile-1.3.2.min.js">
----------------------需要应用jquery .mobile自行百度
.num-zcon{
overflow: hidden;
width:auto;
height: 12.5em;
}
.num-container1 {
height: 12.5em;
background: url("icons/effect-img/13.png")no-repeat;
background-size: cover;
display:block;
}
.num-container2 {
height: 12.5em;
background: url("icons/effect-img/15.png")no-repeat; background-size: cover;
display:none;
}
.num-container3 {
height: 12.5em;
background: url("icons/effect-img/177.png")no-repeat;
background-size: cover;
display:none;
}
.num-container4 {
height: 12.5em;
background: url("icons/effect-img/18.png")no-repeat;
background-size: cover;
display:none;
}
.num-container5 {
height: 12.5em;
background: url("icons/effect-img/19.png")no-repeat;
background-size: cover;
display:none;
}
.num-float{
height:1em;
margin:0 auto;
z-index: 3;
text-align:center;
margin-top: -1.35em;
}
.num-a{
background:#ffffff;
height: 0.4375em;
width: 0.4375em;
border-radius: 50%;
float: left;
opacity: 0.5;
}
.num-kong{
height: 0.625em;
width: 0.25em;
float: left;
}
.num-kong-width{
width: auto;
height: 0.9375em;
}
.num-kong-win{
height: 0.625em;
width: 0.1em;
float: left;
}

<div class="num-zcon">
<div class="num-container1" id="adv1">

@H_404_0@以上所述是小编给大家介绍的JS实现touch 点击滑动轮播实例代码。编程之家 jb51.cc 收集整理的教程希望能对你有所帮助,如果觉得编程之家不错,可分享给好友!感谢支持

猜你在找的JavaScript相关文章