素材牛VIP会员

jQuery带缩略图的上下轮播图插件SliderPro

 所属分类:网页特效-焦点图/幻灯片

 浏览:15919次  评论:1次  更新时间:2016-12-03
牛币素材VIP可免积分下载
jQuery带缩略图的上下轮播图插件SliderPro兼容IE8
积分说明:注册即送10牛币,每日签到可获得5牛币,成为VIP会员可永久免牛币下载!   充值积分   充值会员   更多说明»
素材描述:jQuery基于SliderPro实现的左右布局带缩略图上下轮播图的效果

详细介绍

使用方法:

引入CSS样式文件

<link rel="stylesheet" type="text/css" href="css/slider-pro.min.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="css/examples.css" media="screen"/>

引入jQuery库文件、插件JS文件

<script src="http://www.sucainiu.com/themes/cdn/jquery/jquery-1.10.2.js"></script>
<script type="text/javascript" src="js/jquery.sliderPro.min.js"></script>

插件初始化、参数配置

$( document ).ready(function( $ ) {
    $( '#example5' ).sliderPro({
        width: 670,
        height: 500,
        orientation: 'vertical',
        loop: false,
        arrows: true,
        buttons: false,
        thumbnailsPosition: 'right',
        thumbnailPointer: true,
        thumbnailWidth: 290,
        breakpoints: {
            800: {
                thumbnailsPosition: 'bottom',
                thumbnailWidth: 270,
                thumbnailHeight: 100
            },
            500: {
                thumbnailsPosition: 'bottom',
                thumbnailWidth: 120,
                thumbnailHeight: 50
            }
        }
    });
});

HTML结构

<div id="example5" class="slider-pro">
  <div class="sp-slides">
    <div class="sp-slide"><img class="sp-image" src="css/images/blank.gif" data-src="images/a1.jpg" data-retina="images/a1.jpg"/>
    </div>
    
    <div class="sp-slide"><img class="sp-image" src="css/images/blank.gif" data-src="images/a2.jpg" data-retina="images/a2.jpg"/>
    </div>
    
   <div class="sp-slide"><img class="sp-image" src="css/images/blank.gif" data-src="images/a3.jpg" data-retina="images/a1.jpg"/>
    </div>
    
    <div class="sp-slide"><img class="sp-image" src="css/images/blank.gif" data-src="images/a4.jpg" data-retina="images/a1.jpg"/>
    </div>
    
    <div class="sp-slide"><img class="sp-image" src="css/images/blank.gif" data-src="images/a5.jpg" data-retina="images/a1.jpg"/>
    </div>
    
    <div class="sp-slide"><img class="sp-image" src="css/images/blank.gif" data-src="images/a6.jpg" data-retina="images/a1.jpg"/>
    </div>
    
    <div class="sp-slide"><img class="sp-image" src="css/images/blank.gif" data-src="images/a7.jpg" data-retina="images/a1.jpg"/>
    </div>
    
    <div class="sp-slide"><img class="sp-image" src="css/images/blank.gif" data-src="images/a8.jpg" data-retina="images/a1.jpg"/>
    </div>
    
    <div class="sp-slide"><img class="sp-image" src="css/images/blank.gif" data-src="images/a9.jpg" data-retina="images/a1.jpg"/>
    </div>
    
    <div class="sp-slide"><img class="sp-image" src="css/images/blank.gif" data-src="images/a10.jpg" data-retina="images/a1.jpg"/>
    </div>
  </div>
  
  <div class="sp-thumbnails">
    <div class="sp-thumbnail">
      <div class="sp-thumbnail-image-container"> <img class="sp-thumbnail-image" src="images/a1.jpg"/> </div>
    </div>
    <div class="sp-thumbnail">
      <div class="sp-thumbnail-image-container"> <img class="sp-thumbnail-image" src="images/a2.jpg"/> </div>
    </div>
    <div class="sp-thumbnail">
      <div class="sp-thumbnail-image-container"> <img class="sp-thumbnail-image" src="images/a3.jpg"/> </div>
    </div>
    <div class="sp-thumbnail">
      <div class="sp-thumbnail-image-container"> <img class="sp-thumbnail-image" src="images/a4.jpg"/> </div>
    </div>
    <div class="sp-thumbnail">
      <div class="sp-thumbnail-image-container"> <img class="sp-thumbnail-image" src="images/a5.jpg"/> </div>
    </div>
    <div class="sp-thumbnail">
      <div class="sp-thumbnail-image-container"> <img class="sp-thumbnail-image" src="images/a6.jpg"/> </div
    ></div>
    <div class="sp-thumbnail">
      <div class="sp-thumbnail-image-container"> <img class="sp-thumbnail-image" src="images/a7.jpg"/> </div>
    </div>
    <div class="sp-thumbnail">
      <div class="sp-thumbnail-image-container"> <img class="sp-thumbnail-image" src="images/a8.jpg"/> </div>
    </div>
    <div class="sp-thumbnail">
      <div class="sp-thumbnail-image-container"> <img class="sp-thumbnail-image" src="images/a9.jpg"/> </div>
    </div>
    <div class="sp-thumbnail">
      <div class="sp-thumbnail-image-container"> <img class="sp-thumbnail-image" src="images/a10.jpg"/> </div>
    </div>
  </div>
</div>

相关素材 - 焦点图/幻灯片

讨论这个素材(1)回答他人问题或分享使用心得会奖励牛币

qq***34  
2020年05月05日

挺好看的

回复
 文明上网,理性发言!   😉 阿里云幸运券,戳我领取
我的牛币余额:0
所需牛币:1 开始下载

牛币获取:签到、评论、充值    » 在线充值(10牛币=1元)