<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>图片轮播</title>
<script src="jquery/jquery-1.8.2.min.js"></script>
<script language="javascript" src="js/jquery.SuperSlide.js"></script>
<style>
/*初始化*/
* {
margin: 0;
padding: 0;
font-size: 12px;
font-style: normal;
font-family: "微软雅黑"
}
li ul img a div {
border: 0;
list-style: none;
}
a {
color: #333333;
text-decoration: none;
outline: none;
}
/*benner css begin*/
#banner {
width;100%;height: 326px;
margin: 15px 0;
position: relative;
z-index: 1
}
.index_focus {
position: relative;
width: 100%;
height: 326px;
margin: 0 auto;
overflow: hidden;
}
.index_focus .bd li {
display: none;
position: absolute;
left: 0;
top: 0;
}
.index_focus_post {
z-index: 10;
}
.index_focus .pic {
height: auto;
display: block;
}
.index_focus .pic:hover {
text-decoration: none;
}
.index_focus .slide_nav {
position: absolute;
left: 592px;
bottom: 26px;
}
.index_focus .slide_nav a {
cursor: pointer;
float: left;
font-size: 28px;
font-family: arial;
color: #fff;
padding: 5px 10px;
}
.index_focus .slide_nav li:hover,.index_focus .slide_nav .on {
text-decoration: none;
color: #9c0;
filter: alpha(opacity=80);
opacity: 0.8;
}
.index_focus_pre,.index_focus_next {
display: none;
position: absolute;
top: 50%;
margin-top: -36px;
width: 72px;
height: 72px;
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
z-index: 10;
background: url(images/ico_sliding.png) no-repeat;
}
.index_focus_pre {
left: 30px;
background-position: 0 0;
margin-top: -40px;
}
.index_focus_pre:hover {
background-position: 0 -144px;
}
.index_focus_next {
right: 30px;
background-position: 0 -72px;
margin-top: -40px;
}
.index_focus_next:hover {
background-position: 0 -216px;
}
.index_focus_info {
position: absolute;
left: 10%;
bottom: 12%;
width: 800px;
height: 200px;
padding-bottom: 10px;
color: #fff;
text-decoration: none;
cursor: pointer;
font-family: "\5fae\8f6f\96c5\9ed1";
-moz-text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
-webkit-text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
background: url("../images/index_focus_bg.png") no-repeat;
_background: none;
}
</style>
<script type="text/javascript">
//图片轮播
$(document).ready(function() {
$(".index_focus").hover(function() {
$(this).find(".index_focus_pre,.index_focus_next").stop(true, true).fadeTo("show", 1)
}
, function() {
$(this).find(".index_focus_pre,.index_focus_next").fadeOut()
}
);
$(".index_focus").slide({
titCell: ".slide_nav a ",
mainCell: ".bd ul",
delayTime: 500,
interTime: 3500,
prevCell: ".index_focus_pre",
nextCell: ".index_focus_next",
effect: "fold",
autoPlay: true,
trigger: "click",
startFun: function(i) {
$(".index_focus_info").eq(i).find("h3").css("display", "block").fadeTo(1000, 1);
$(".index_focus_info").eq(i).find(".text").css("display", "block").fadeTo(1000, 1);
}
});
}
);
</script>
</head>
<body>
<div id="containt">
<!--图片轮播开始-->
<div id="banner">
<div class="index_focus">
<a href="javascript:;" class="index_focus_pre" title="上一张" style="opacity: 0; display: inline;"></a>
<a href="javascript:;" class="index_focus_next" title="下一张" style="opacity: 0; display: inline;"></a>
<div class="bd">
<ul>
<li><a href class="pic"><img class="pic" src="images/banner.jpg"></a></li>
<li><a href class="pic"><img class="pic" src="images/banner.JPG"></a></li>
<li><a href class="pic"><img class="pic" src="images/banner.jpg"></a></li>
<li><a href class="pic"><img class="pic" src="images/banner.jpg"></a></li>
<li><a href class="pic"><img class="pic" src="images/banner.jpg"></a></li>
</ul>
</div>
<div class="slide_nav">
<a href="javascript:;" class="">●</a>
<a href="javascript:;" class="on">●</a>
<a href="javascript:;" class="">●</a>
<a href="javascript:;" class="">●</a>
<a href="javascript:;" class="">●</a>
</div>
</div>
</div>
<!--图片轮播结束-->
</div>
</body>
</html>
效果图: