全屏幻灯片代码(最好用的)

找额好用全屏的banner幻灯片也很难

html代码

<div class="slideshow carousel clearfix" style="height:425px; overflow:hidden;">
<div id="carousel-92210">
<div class="carousel-item">
<div class="carousel-img"><a href="javascript:;" target=""><img src="images/b01.jpg" height="425" alt="幻灯2"/></a></div>
</div>
<div class="carousel-item">
<div class="carousel-img"><a href="javascript:;" target=""><img src="images/b02.jpg" height="425" alt="幻灯1"/></a></div>
</div>

<!--<div class="carousel-item">
<div class="carousel-img"><a href="javascript:;" target=""><img src="/uploads/allimg/160824/1-160R41402490-L.jpg" height="425" alt="幻灯1"/></a></div>
</div>-->
</div>
<div class="carousel-btn carousel-btn-fixed" id="carousel-page-92210"></div>
</div>
<script type="text/javascript">

$(window).bind("load resize",function(){
$("#carousel-92210").carouFredSel({
width : '100%',
items : { visible : 1 },
auto : { pauseOnHover: true, timeoutDuration:5000 },
swipe : { onTouch:true, onMouse:true },
pagination : "#carousel-page-92210"
//prev : { button:"#carousel-prev-92210"},
//next : { button:"#carousel-next-92210"},
//scroll : { fx : "crossfade" }
});
});
</script>

css代码
/* ====== Slideshow & Scrollable ====== */
.carousel-direction a {
display: block;
width: 30px;
height: 60px;
line-height: 60px;
overflow: hidden;
position: absolute;
top: 50%;
z-index: 100;
margin-top: -30px;
font-family: simsun;
text-align: center;
color: #fff;
font-size: 30px;
text-decoration: none;
cursor: pointer;
background-color: #005db4;
-webkit-transition: all 0.3s ease-out 0s;
-moz-transition: all 0.3s ease-out 0s;
-o-transition: all 0.3s ease-out 0s;
transition: all 0.3s ease-out 0s;
}
.carousel-direction a:hover {
background-color: #004f99;
color: #fff;
text-decoration: none;
}
.carousel-direction a.disabled, .carousel-direction a.disabled:hover {
background-color: #e5e5e5;
color: #ccc;
cursor: default;
}
.carousel-prev {
left: 0;
}
.carousel-next {
right: 0;
}
.carousel-btn {
text-align: center;
margin: 10px 0;
}
.carousel-btn a {
display: inline-block;
width: 12px;
height: 12px;
margin: 0 6px;
background: #ccc;
border-radius: 50%;
}
.carousel-btn .selected {
background: #005db4;
cursor: default;
}
.carousel-btn a span {
display: none;
}
.carousel-btn-fixed {
width: 100%;
position: absolute;
bottom: 15px;
left: 0;
margin: 0;
z-index: 100;
}
.carousel-num {
position: absolute;
bottom: 7px;
right: 10px;
z-index: 100;
}
.carousel-num a {
display: inline-block;
*display:inline;
*zoom:1;
width: 22px;
height: 22px;
line-height: 22px;
margin: 0 0 0 5px;
text-align: center;
background: #333;
font-size: 12px;
color: #fff;
}
.carousel-num a:hover {
text-decoration: none;
color: #fff;
}
.carousel-num a.selected {
background: #005db4;
cursor: default;
}
.carousel-thumbs {
text-align: center;
}
.carousel-thumbs a {
border: 2px solid #ccc;
margin: 0 3px;
display: inline-block;
*display:inline;
*zoom:1;
}
.carousel-thumbs a img {
display: block;
}
.carousel-thumbs a:hover, .carousel-thumbs a.selected {
border-color: #f60;
}
.carousel {
position: relative;
}
.carousel-item {
position: relative;
float: left;
display: block;
}
.carousel-item .carousel-img {
display: block;
}
.carousel-item .carousel-img a[href="javascript:;"] {
cursor: default;
}
.carousel-item .carousel-img img {
display: block;
}
.carousel-info {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
background: url(../img/opa70.png);
}
.carousel-info-inner {
font-size: 13px;
padding: 8px 10px;
color: #fff;
}
.carousel-info-inner a, .carousel-info-inner a:hover {
color: #fff;
}
.carousel-info-inner h3 {
font-size: 15px;
line-height: 20px;
color: #fff;
}
.carousel-info-inner p {
margin-top: 5px;
}
.responsive-carousel {
overflow: hidden;
}
.responsive-carousel .carousel-item img {
width: 100%;
height: auto !important;
}
.responsive-carousel .carousel-direction {
display: none;
}
.responsive-carousel:hover .carousel-direction {
display: block;
}
.responsive-carousel-set .carousel-info-inner h3 {
font-weight: normal;
}
.slideshow {
overflow: hidden;
}
.slideshow .carousel-direction a {
width: 55px;
height: 55px;
line-height: 55px;
}
.slideshow .carousel-direction a:hover {
}
.slideshow .carousel-prev {
}
.slideshow .carousel-next {
}
.slideshow-gallery {
margin-bottom: 20px;
}
.slideshow-gallery .carousel-img a {
display: block;
text-align: center;
width: 100%;
}
.slideshow-gallery .carousel-img img {
display: inline;
}
.slideshow-gallery .carousel-info-inner h3 {
font-size: 14px;
line-height: 18px;
}
.slideshow-gallery .carousel-direction a {
display: none !important;
}
.slideshow-gallery:hover .carousel-direction a {
display: block !important;
}
.slideshow-gallery:hover .carousel-direction a {
display: block;
}
.slideshow-gallery-thumbs {
position: relative;
padding: 0 30px;
}
.slideshow-gallery-thumbs img {
float: left;
display: block;
margin: 0 2px;
border: 1px solid #ccc;
cursor: pointer;
width: 104px;
}
.slideshow-gallery-thumbs img:hover, .slideshow-gallery-thumbs img.selected {
border: 1px solid #f00;
}
.slideshow-gallery-thumbs-direction {
padding: 0 50px;
}
.slideshow-gallery-thumbs-direction a {
display: block;
width: 20px;
height: 76px;
line-height: 76px;
overflow: hidden;
position: absolute;
top: 50%;
z-index: 100;
margin-top: -38px;
font-family: simsun;
text-align: center;
color: #fff;
font-size: 25px;
text-decoration: none;
cursor: pointer;
background-color: #ccc;
}
.slideshow-gallery-thumbs-direction a:hover {
background-color: #999;
color: #fff;
text-decoration: none;
}
.slideshow-gallery-thumbs-direction .thumbs-carousel-prev {
left: 0;
}
.slideshow-gallery-thumbs-direction .thumbs-carousel-next {
right: 0;
}
.slideshow-gallery-thumbs-direction .disabled, .slideshow-gallery-thumbs-direction .disabled:hover {
background-color: #dcf2ff;
color: #ccc;
cursor: default;
}

 

调用js

js下载

下载说明: 帮助教程
1.资源失效请联系QQ:1138166071补发;寻课加QQ联系
2.资源均为网络收集,仅供参考研究,请在下载后24小时内删除。不要商用和非法用途,否则后果自己承担。
3.默认解压密码:blog.qdql.net
4.购买本站资源即代表同意本站免责协议
5.提示:本站资源属虚拟商品,购买后恕不退款。
6.特别声明本站资源部分来源于网络,如有侵权,请联系站长进行删除处理!
本文地址:http://blog.qdql.net/3701/

发表评论


表情