Home > Web Front-end > JS Tutorial > Website slide switching effect focus map code based on jquery_jquery

Website slide switching effect focus map code based on jquery_jquery

WBOY
Release: 2016-05-16 17:22:27
Original
1159 people have browsed it

导入jquery代码

复制代码 代码如下:


 
 <script><br>  var carousel_images = [<br>   "images/01.jpg",<br>   "images/02.jpg",<br>   "images/03.jpg",<br>   "images/04.jpg",<br>   "images/05.jpg",<br>   "images/06.jpg",<br>   "images/07.jpg"<br>  ];<br><br>  // Example without autoplay<br>  $(window).load(function() {<br>   $("#photo_container").isc({<br>    imgArray: carousel_images<br>   }); <br>  });<br><br>  // Example with autoplay<br>  /* $(window).load(function() {<br>   $("#photo_container").isc({<br>    imgArray: carousel_images,<br>    autoplay: true,<br>    autoplayTimer: 5000 // 5 seconds.<br>   }); <br>  }); */<br> </script>


样式文件css有几个 需要加载个

复制代码 代码如下:

body {
 font-family:"HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,sans-serif;
 color: #FFF;
 font-size: 12px;
 background: #000;
}

h1 {
 font-size: 52px;
 text-align: center;
}

h1,h2,h3,h4 {
 font-weight: 100;
}

#photo_container {
 width: 960px;
 height: 400px;
 margin: auto;
 background-color: #000;
}

p {
 text-align: center;
}

/*定义文字样式*/
A {FONT-SIZE: 12px; COLOR: #000;}
A:link {COLOR: #2d8931; TEXT-DECORATION: none;}
A:visited {COLOR: #333; TEXT-DECORATION: none;}
A:hover {COLOR: #333; TEXT-DECORATION:underline;}
A:active {COLOR: #333; TEXT-DECORATION: none;}


#swipe_nav_prev,#swipe_nav_next {
 position: absolute;
 top: 0;
 left: 0;
 z-index: 2000;
 background-color: #ccc;
 cursor: pointer;
 text-align: center;
 display: none;
}

#swipe_nav_prev {
 background: #333 url('prev.png') no-repeat center center;

}

#swipe_nav_next {
 background: #333 url('next.png') no-repeat center center;

}

.internal_swipe_container {
 position: relative;
}

.trans {
 filter:alpha(opacity=75);
 -moz-opacity:0.75;
 -khtml-opacity: 0.75;
 opacity: 0.75;
}

.jq_swipe_image {
 background: url('loader.gif') no-repeat center center;

}

#count_container {
 padding: 0;
 margin: 0;
 position: absolute;
 top: 0;
 left: 0;
 background-color: pink;
 height: 6px;
 list-style: none;
}

.counter {
 float: left;
 height: 6px;
 background-color: #FFF;
 z-index: 200;
 height: 6px;
 padding: 0;
 margin: 0;
}

.counter:hover {
 cursor: pointer;
 background-color: #ff00fc !important;
}

.current {
 background-color: #ff00fc !important;
}

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template