这款jQuery网站幻灯片切换效果焦点图非常大气,要是网站首页应用此款效果,必定是蓬荜生辉啊!
导入jquery代码
代码如下 | 复制代码 |
<script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js" type="text/javascript"></script> <script src="js/jquery-image-scale-carousel.js" type="text/javascript" charset="utf-8"></script> <script> var carousel_images = [ "images/01.jpg", "images/02.jpg", "images/03.jpg", "images/04.jpg", "images/05.jpg", "images/06.jpg", "images/07.jpg" ]; // Example without autoplay $(window).load(function() { $("#photo_container").isc({ imgArray: carousel_images }); }); // Example with autoplay /* $(window).load(function() { $("#photo_container").isc({ imgArray: carousel_images, autoplay: true, autoplayTimer: 5000 // 5 seconds. }); }); */ </script> |
样式文件css有几个 需要加载个
代码如下 | 复制代码 |
body { font-family:"HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,sans-serif; color: #FFF; font-size: 12px; background: #000; } h1 { h1,h2,h3,h4 { #photo_container { p { /*定义文字样式*/ #swipe_nav_prev,#swipe_nav_next { #swipe_nav_prev { #swipe_nav_next { .internal_swipe_container { .trans { .jq_swipe_image { #count_container { .counter { .counter:hover { .current { |