CSS+JS自动循环滚动的多图片幻灯切换展示效果

<!DOCTYPE html PUBLIC  " -//W3C//DTD XHTML 1.0 Transitional//EN "  " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= " http://www.w3.org/1999/xhtml ">
<head>
<title>CSS+JS自动循环滚动的多图片幻灯切换展示效果丨芯晴网页特效丨CsrCode.CN</title>
<meta http-equiv= " content-type " content= " text/html;charset=gb2312 ">
<!--把下面代码加到<head>与</head>之间-->
<style type= " text/css ">
UL {
 PADDING-BOTTOM: 0px; LIST-STYLE-TYPE: none; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; LIST-STYLE-IMAGE: none; PADDING-TOP: 0px
}
LI {
 PADDING-BOTTOM: 0px; LIST-STYLE-TYPE: none; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; LIST-STYLE-IMAGE: none; PADDING-TOP: 0px
}
A:hover IMG {
 BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; BORDER-TOP: medium none; BORDER-RIGHT: medium none
}
IMG {
 BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0px
}
#banner_images {
 POSITION: relative; MARGIN: 10px auto; WIDTH: 960px; BACKGROUND: #2d2d2d
}
#banner_images .focus {
 PADDING-BOTTOM: 10px; MARGIN: 0px auto; WIDTH: 848px; OVERFLOW: hidden
}
#banner_images .focus .wrapper {
 Z-INDEX:  9; POSITION: relative; WIDTH: 5000px; HEIGHT: 251px
}
#banner_images .focus .page {
 PADDING-BOTTOM: 8px; PADDING-LEFT: 0px; PADDING-RIGHT: 8px; FLOAT: left; OVERFLOW: hidden; PADDING-TOP: 12px
}
#banner_images .focus .page LI {
 MARGIN-LEFT: 8px
}
#banner_images .focus IMG {
 WIDTH: 160px; FLOAT: left; HEIGHT: 230px
}
#banner_images .focus A {
 WIDTH: 160px; FLOAT: left; HEIGHT: 230px
}
#banner_images .focus .nth- 1 {
 WIDTH: 160px; FLOAT: left; HEIGHT: 230px
}
#banner_images .focus .nth- 2 {
 WIDTH: 160px; FLOAT: left; HEIGHT: 230px
}
#banner_images .focus .nth- 3 {
 WIDTH: 160px; FLOAT: left; HEIGHT: 230px
}
#banner_images .focus .nth- 4 {
 WIDTH: 160px; FLOAT: left; HEIGHT: 230px
}
#banner_images .focus .nth- 5 {
 WIDTH: 160px; FLOAT: left; HEIGHT: 230px
}
#banner_images .focus .poster3 .nth- 1 {
 WIDTH: 496px
}
#banner_images .focus .poster3 .nth- 1 IMG {
 WIDTH: 496px
}
#banner_images .focus .poster3 .nth- 1 SPAN.cover {
 WIDTH: 494px
}
#banner_images .focus .poster3 .nth- 1 A:hover SPAN.cover {
 WIDTH: 492px
}
#banner_images .focus .poster1 .nth- 1 {
 WIDTH: 832px
}
#banner_images .focus .poster1 .nth- 1 IMG {
 WIDTH: 832px
}
#banner_images .focus .poster1 .nth- 1 SPAN.cover {
 WIDTH: 830px
}
#banner_images .focus .poster1 .nth- 1 A:hover SPAN.cover {
 WIDTH: 828px
}
#banner_images .focus A {
 POSITION: relative
}
#banner_images .focus A SPAN.cover {
 BORDER-BOTTOM: #3e3e3e 1px solid; POSITION: absolute; BORDER-LEFT: #3e3e3e 1px solid; WIDTH: 158px; DISPLAY: block; HEIGHT: 228px; BORDER-TOP: #3e3e3e 1px solid; TOP: 0px; BORDER-RIGHT: #3e3e3e 1px solid; LEFT: 0px
}
#banner_images .focus A:hover SPAN.cover {
 BORDER-BOTTOM: # 797979 2px solid; BORDER-LEFT: # 797979 2px solid; WIDTH: 156px; HEIGHT: 226px; BORDER-TOP: # 797979 2px solid; BORDER-RIGHT: # 797979 2px solid
}
#banner_images B SPAN.left {
 POSITION: absolute; WIDTH: 32px; DISPLAY: block; BACKGROUND: url(http: // www.csrcode.cn/imagesforcode/201208/movie-home-spr-8.png) 0px 0px; HEIGHT: 64px; TOP: 96px; CURSOR: pointer; LEFT: 18px
}
#banner_images B.hover SPAN.left {
 BACKGROUND-POSITION: 0px -65px
}
#banner_images B:hover SPAN.left {
 BACKGROUND-POSITION: 0px -65px
}
#banner_images B SPAN.right {
 POSITION: absolute; WIDTH: 32px; DISPLAY: block; BACKGROUND: url(http: // www.csrcode.cn/imagesforcode/201208/movie-home-spr-8.png) -39px 0px; HEIGHT: 64px; TOP: 96px; CURSOR: pointer; RIGHT: 18px
}
#banner_images B.hover SPAN.right {
 BACKGROUND-POSITION: -39px -65px
}
#banner_images B:hover SPAN.right {
 BACKGROUND-POSITION: -39px -65px
}
#banner_images .switcher {
 TEXT-ALIGN: center; LINE-HEIGHT: 10px; HEIGHT: 10px
}
#banner_images .switcher .button {
 LINE-HEIGHT: 10px; BACKGROUND-COLOR: #9aa594; MARGIN: 0px 3px; WIDTH: 45px; DISPLAY: inline-block; HEIGHT: 10px; FONT-SIZE: 0px; CURSOR: pointer
}
#banner_images .switcher .cur .button {
 BACKGROUND: url(http: // www.csrcode.cn/imagesforcode/201208/movie-home-spr-8.png) -80px -32px
}
#banner_images .filter {
 BACKGROUND: url(http: // www.csrcode.cn/imagesforcode/201208/movie-home-v-spr-8.png) 0px 0px; HEIGHT: 96px
}
#banner_images .sort_link {
 PADDING-BOTTOM: 0px; PADDING-LEFT: 13px; WIDTH: 84px; PADDING-RIGHT: 19px; FLOAT: left; HEIGHT: 72px; PADDING-TOP: 24px
}
#banner_images .sort_link A {
 PADDING-BOTTOM: 0px; LINE-HEIGHT: 26px; PADDING-LEFT: 8px; PADDING-RIGHT: 0px; DISPLAY: block; MARGIN-BOTTOM: 6px; BACKGROUND: url(http: // www.csrcode.cn/imagesforcode/201208/movie-home-v-spr-8.png) 0px -100px; HEIGHT: 26px; COLOR: #333; FONT-SIZE: 12px; FONT-WEIGHT: bold; PADDING-TOP: 0px
}
#banner_images .v_spl {
 WIDTH: 1px; BACKGROUND: url(http: // www.csrcode.cn/imagesforcode/201208/movie-home-spr-8.png) 0px -144px; FLOAT: left; HEIGHT: 96px; FONT-SIZE: 0px; OVERFLOW: hidden
}
#banner_images .filter .container {
 PADDING-BOTTOM: 0px; PADDING-LEFT: 14px; PADDING-RIGHT: 10px; FLOAT: left; PADDING-TOP: 10px
}
#banner_images .filter_plot {
 WIDTH: 288px
}
#banner_images .filter_year {
 WIDTH: 240px
}
#banner_images .filter_district {
 WIDTH: 240px
}
#banner_images .filter .container H2 {
 PADDING-BOTTOM: 3px; PADDING-LEFT: 5px; WIDTH: 39px; PADDING-RIGHT: 0px; FONT: 12px/18px  " SIMSUN ", Arial, monospace; BACKGROUND: url(http: // www.csrcode.cn/imagesforcode/201208/movie-home-spr-8.png) -80px -2px; HEIGHT: 18px; COLOR: #ddd; PADDING-TOP: 3px
}
#banner_images .filter {
 FONT-SIZE: 12px
}
#banner_images .filter .items {
 LINE-HEIGHT: 25px; MARGIN-LEFT: -3px; MARGIN-RIGHT: -3px; PADDING-TOP: 3px
}
#banner_images .filter .items .item {
 PADDING-BOTTOM: 3px; LINE-HEIGHT: 12px; PADDING-LEFT: 4px; PADDING-RIGHT: 4px; DISPLAY: inline-block; FONT-FAMILY: tahoma,  " simsun "; LETTER-SPACING: 1px; COLOR: # 999; MARGIN-RIGHT: 2px; PADDING-TOP: 5px; -moz-font-family:  " simsun "; _margin: 2px  0
}
#banner_images .filter .items .item:hover {
 BACKGROUND: #15a50d; LETTER-SPACING: 0px; COLOR: #fff; FONT-WEIGHT: bolder; TEXT-DECORATION: none
}
#banner_images .filter .items A.hilight {
 COLOR: #eee
}
#banner_images .focus .page LI {
    display: inline
}
#banner_images {
 overflow: hidden
}
#banner_images .focus .wrapper {
    overflow: hidden
}
#banner_images B SPAN {
 z-index:  99; overflow: hidden
}
#banner_images B SPAN.left {}
#banner_images B SPAN a {
 text-indent: -9999px
}
#banner_images B SPAN.left a {
    display: block;
    height: 64px;
    left: 18px;
    top: 96px;
    width: 32px;
 background: url( " http://www.csrcode.cn/imagesforcode/201208/movie-home-spr-8.png ") repeat scroll  0  0 transparent
}
#banner_images B SPAN.left a:hover {
 background-position:  0 -65px
}
#banner_images B SPAN.right a { 
    display: block;
    height: 64px;
    left: 18px;
    top: 96px;
    width: 32px;
 background: url( " http://www.csrcode.cn/imagesforcode/201208/movie-home-spr-8.png ") repeat scroll -39px  0 transparent
}
#banner_images B SPAN.right a:hover {
 background-position: -39px -65px
}
#banner_images .focus {
 position: relative
}
</style>
</head>
<body>
<!--把下面代码加到<body>与</body>之间-->
<div id= " banner_images "><b  class= " scroll_button "><span  class= " left "><a href= " javascript:void(0) ">left</a></span></b><b  class= " scroll_button "><span  class= " right "><a href= " javascript:void(0) ">right</a></span></b>
  <div  class= " focus " id= " poster_focus ">
    <div  class= " wrapper ">
      <ul  class= " page poster3 ">
        <li  class= " nth-1 "><a title= "" href= " #nogo "><img src= " http://www.csrcode.cn/images/m01.jpg " width= " 496px " height= " 230px "><span  class= " cover "></span></a></li>
        <li  class= " nth-2 "><a title= "" href= " #nogo "><img src= " http://www.csrcode.cn/images/m02.jpg " width= " 160px " height= " 230px "><span  class= " cover "></span></a></li>
        <li  class= " nth-3 "><a title= "" href= " #nogo "><img src= " http://www.csrcode.cn/images/m03.jpg " width= " 160px " height= " 230px "><span  class= " cover "></span></a></li>
      </ul>
      <ul  class= " page poster5 " style= " display:none ">
        <li  class= " nth-1 "><a title= "" href= " #nogo "><img src= " http://www.csrcode.cn/images/m04.jpg " width= " 160px " height= " 230px "><span  class= " cover "></span></a></li>
        <li  class= " nth-2 "><a title= "" href= " #nogo "><img src= " http://www.csrcode.cn/images/m05.jpg " width= " 160px " height= " 230px "><span  class= " cover "></span></a></li>
        <li  class= " nth-3 "><a title= "" href= " #nogo "><img src= " http://www.csrcode.cn/images/m06.jpg " width= " 160px " height= " 230px "><span  class= " cover "></span></a></li>
        <li  class= " nth-4 "><a title= "" href= " #nogo "><img src= " http://www.csrcode.cn/images/m07.jpg " width= " 160px " height= " 230px "><span  class= " cover "></span></a></li>
        <li  class= " nth-5 "><a title= "" href= " #nogo "><img src= " http://www.csrcode.cn/images/m08.jpg " width= " 160px " height= " 230px "><span  class= " cover "></span></a></li>
      </ul>
      <ul  class= " page poster5 " style= " display:none ">
        <li  class= " nth-1 "><a title= "" href= " #nogo "><img src= " http://www.csrcode.cn/images/m01.jpg " width= " 160px " height= " 230px "><span  class= " cover "></span></a></li>
        <li  class= " nth-2 "><a title= "" href= " #nogo "><img src= " http://www.csrcode.cn/images/m02.jpg " width= " 160px " height= " 230px "><span  class= " cover "></span></a></li>
        <li  class= " nth-3 "><a title= "" href= " #nogo "><img src= " http://www.csrcode.cn/images/m03.jpg " width= " 160px " height= " 230px "><span  class= " cover "></span></a></li>
        <li  class= " nth-4 "><a title= "" href= " #nogo "><img src= " http://www.csrcode.cn/images/m04.jpg " width= " 160px " height= " 230px "><span  class= " cover "></span></a></li>
        <li  class= " nth-5 "><a title= "" href= " #nogo "><img src= " http://www.csrcode.cn/images/m05.jpg " width= " 160px " height= " 230px "><span  class= " cover "></span></a></li>
      </ul>
      <ul  class= " page poster5 " style= " display:none ">
        <li  class= " nth-1 "><a title= "" href= " #nogo "><img src= " http://www.csrcode.cn/images/m06.jpg " width= " 160px " height= " 230px "><span  class= " cover "></span></a></li>
        <li  class= " nth-2 "><a title= "" href= " #nogo "><img src= " http://www.csrcode.cn/images/m07.jpg " width= " 160px " height= " 230px "><span  class= " cover "></span></a></li>
        <li  class= " nth-3 "><a title= "" href= " #nogo "><img src= " http://www.csrcode.cn/images/m08.jpg " width= " 160px " height= " 230px "><span  class= " cover "></span></a></li>
        <li  class= " nth-4 "><a title= "" href= " #nogo "><img src= " http://www.csrcode.cn/images/m09.jpg " width= " 160px " height= " 230px "><span  class= " cover "></span></a></li>
        <li  class= " nth-5 "><a title= "" href= " #nogo "><img src= " http://www.csrcode.cn/images/m10.jpg " width= " 160px " height= " 230px "><span  class= " cover "></span></a></li>
      </ul>
      <ul  class= " page poster5 " style= " display:none ">
        <li  class= " nth-1 "><a title= "" href= " #nogo "><img src= " http://www.csrcode.cn/images/m01.jpg " width= " 160px " height= " 230px "><span  class= " cover "></span></a></li>
        <li  class= " nth-2 "><a title= "" href= " #nogo "><img src= " http://www.csrcode.cn/images/m04.jpg " width= " 160px " height= " 230px "><span  class= " cover "></span></a></li>
        <li  class= " nth-3 "><a title= "" href= " #nogo "><img src= " http://www.csrcode.cn/images/m05.jpg " width= " 160px " height= " 230px "><span  class= " cover "></span></a></li>
        <li  class= " nth-4 "><a title= "" href= " #nogo "><img src= " http://www.csrcode.cn/images/m07.jpg " width= " 160px " height= " 230px "><span  class= " cover "></span></a></li>
        <li  class= " nth-5 "><a title= "" href= " #nogo "><img src= " http://www.csrcode.cn/images/m09.jpg " width= " 160px " height= " 230px "><span  class= " cover "></span></a></li>
      </ul>
    </div>
    <div  class= " switcher "> <b  class= " switcher-button cur " pg= " 0 "><span  class= " button "></span></b><b  class= " switcher-button " pg= " 1 "><span  class= " button "></span></b><b  class= " switcher-button " pg= " 2 "><span  class= " button "></span></b><b  class= " switcher-button " pg= " 3 "><span  class= " button "></span></b><b  class= " switcher-button " pg= " 4 "><span  class= " button "></span></b></div>
  </div>
</div>
<script src= " http://www.csrcode.cn/imagesforcode/201208/g.js "></script> 
<script src= " http://www.csrcode.cn/imagesforcode/201208/movie-home.js "></script>
</body>
</html>

<br>如果不显示预览效果,请刷新一下本页面先~~<br>所需js文件:<a href= " http://www.csrcode.cn/imagesforcode/201208/g.js ">g.js</a>、<a href= " http://www.csrcode.cn/imagesforcode/201208/movie-home.js ">movie-home.js</a><hr><p align= " center "><font color=black>本特效由 <a href= " http://www.CsrCode.cn " target= " _blank ">芯晴网页特效</a>丨CsrCode.Cn 收集于互联网,只为兴趣与学习交流,不作商业用途。</font></p>

转载于:https://www.cnblogs.com/csr04/archive/2012/08/24/2653665.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值