基于jQuery右侧带缩略图导航的焦点图

今天我们要来分享一款右侧带缩略图导航的jQuery焦点图插件,这款jQuery焦点图插件的特点是右侧有一列缩略图导航列表,并且可以定义任意数量的图片,你可以拖动列表来查看所有的图片,点击缩略图后,即可实现图片的上下切换动画。

在线预览   源码下载

实现的代码。

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/image1_medium.jpg"
                    data-retina="images/image1_large.jpg" />
                <div class="sp-caption">
                    HTML5资源教程</div>
            </div>
            <div class="sp-slide">
                <img class="sp-image" src="css/images/blank.gif" data-src="images/image2_medium.jpg"
                    data-retina="images/image2_large.jpg" />
                <div class="sp-caption">
                    HTML5资源教程</div>
            </div>
            <div class="sp-slide">
                <img class="sp-image" src="css/images/blank.gif" data-src="images/image3_medium.jpg"
                    data-retina="images/image3_large.jpg" />
                <div class="sp-caption">
                    HTML5资源教程</div>
            </div>
            <div class="sp-slide">
                <img class="sp-image" src="css/images/blank.gif" data-src="images/image4_medium.jpg"
                    data-retina="images/image4_large.jpg" />
                <div class="sp-caption">
                    HTML5资源教程</div>
            </div>
            <div class="sp-slide">
                <img class="sp-image" src="css/images/blank.gif" data-src="images/image5_medium.jpg"
                    data-retina="images/image5_large.jpg" />
                <div class="sp-caption">
                    HTML5资源教程</div>
            </div>
            <div class="sp-slide">
                <img class="sp-image" src="css/images/blank.gif" data-src="images/image1_medium.jpg"
                    data-retina="images/image1_large.jpg" />
                <div class="sp-caption">
                    HTML5资源教程</div>
            </div>
            <div class="sp-slide">
                <img class="sp-image" src="css/images/blank.gif" data-src="images/image2_medium.jpg"
                    data-retina="images/image2_large.jpg" />
                <div class="sp-caption">
                    HTML5资源教程</div>
            </div>
            <div class="sp-slide">
                <img class="sp-image" src="css/images/blank.gif" data-src="images/image3_medium.jpg"
                    data-retina="images/image3_large.jpg" />
                <div class="sp-caption">
                    HTML5资源教程</div>
            </div>
            <div class="sp-slide">
                <img class="sp-image" src="css/images/blank.gif" data-src="images/image4_medium.jpg"
                    data-retina="images/image4_large.jpg" />
                <div class="sp-caption">
                    HTML5资源教程</div>
            </div>
            <div class="sp-slide">
                <img class="sp-image" src="css/images/blank.gif" data-src="images/image5_medium.jpg"
                    data-retina="images/image5_large.jpg" />
                <div class="sp-caption">
                    HTML5资源教程</div>
            </div>
        </div>
        <div class="sp-thumbnails">
            <div class="sp-thumbnail">
                <div class="sp-thumbnail-image-container">
                    <img class="sp-thumbnail-image" src="images/image1_thumbnail.jpg" />
                </div>
                <div class="sp-thumbnail-text">
                    <div class="sp-thumbnail-title">
                        HTML5资源教程</div>
                    <div class="sp-thumbnail-description">
                        html5tricks.com</div>
                </div>
            </div>
            <div class="sp-thumbnail">
                <div class="sp-thumbnail-image-container">
                    <img class="sp-thumbnail-image" src="images/image2_thumbnail.jpg" />
                </div>
                <div class="sp-thumbnail-text">
                    <div class="sp-thumbnail-title">
                        HTML5资源教程</div>
                    <div class="sp-thumbnail-description">
                        html5tricks.com</div>
                </div>
            </div>
            <div class="sp-thumbnail">
                <div class="sp-thumbnail-image-container">
                    <img class="sp-thumbnail-image" src="images/image3_thumbnail.jpg" />
                </div>
                <div class="sp-thumbnail-text">
                    <div class="sp-thumbnail-title">
                        HTML5资源教程</div>
                    <div class="sp-thumbnail-description">
                        html5tricks.com</div>
                </div>
            </div>
            <div class="sp-thumbnail">
                <div class="sp-thumbnail-image-container">
                    <img class="sp-thumbnail-image" src="images/image4_thumbnail.jpg" />
                </div>
                <div class="sp-thumbnail-text">
                    <div class="sp-thumbnail-title">
                        HTML5资源教程</div>
                    <div class="sp-thumbnail-description">
                        html5tricks.com</div>
                </div>
            </div>
            <div class="sp-thumbnail">
                <div class="sp-thumbnail-image-container">
                    <img class="sp-thumbnail-image" src="images/image5_thumbnail.jpg" />
                </div>
                <div class="sp-thumbnail-text">
                    <div class="sp-thumbnail-title">
                        HTML5资源教程</div>
                    <div class="sp-thumbnail-description">
                        html5tricks.com</div>
                </div>
            </div>
            <div class="sp-thumbnail">
                <div class="sp-thumbnail-image-container">
                    <img class="sp-thumbnail-image" src="images/image6_thumbnail.jpg" />
                </div>
                <div class="sp-thumbnail-text">
                    <div class="sp-thumbnail-title">
                        HTML5资源教程</div>
                    <div class="sp-thumbnail-description">
                        html5tricks.com</div>
                </div>
            </div>
            <div class="sp-thumbnail">
                <div class="sp-thumbnail-image-container">
                    <img class="sp-thumbnail-image" src="images/image7_thumbnail.jpg" />
                </div>
                <div class="sp-thumbnail-text">
                    <div class="sp-thumbnail-title">
                        HTML5资源教程</div>
                    <div class="sp-thumbnail-description">
                        html5tricks.com</div>
                </div>
            </div>
            <div class="sp-thumbnail">
                <div class="sp-thumbnail-image-container">
                    <img class="sp-thumbnail-image" src="images/image8_thumbnail.jpg" />
                </div>
                <div class="sp-thumbnail-text">
                    <div class="sp-thumbnail-title">
                        HTML5资源教程</div>
                    <div class="sp-thumbnail-description">
                        html5tricks.com</div>
                </div>
            </div>
            <div class="sp-thumbnail">
                <div class="sp-thumbnail-image-container">
                    <img class="sp-thumbnail-image" src="images/image9_thumbnail.jpg" />
                </div>
                <div class="sp-thumbnail-text">
                    <div class="sp-thumbnail-title">
                        HTML5资源教程</div>
                    <div class="sp-thumbnail-description">
                        html5tricks.com</div>
                </div>
            </div>
            <div class="sp-thumbnail">
                <div class="sp-thumbnail-image-container">
                    <img class="sp-thumbnail-image" src="images/image10_thumbnail.jpg" />
                </div>
                <div class="sp-thumbnail-text">
                    <div class="sp-thumbnail-title">
                        HTML5资源教程</div>
                    <div class="sp-thumbnail-description">
                        html5tricks.com</div>
                </div>
            </div>
        </div>
    </div>

js代码:

 $(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
                    }
                }
            });
        });

via:http://www.w2bc.com/Article/19015

时间: 2024-12-19 07:45:43

基于jQuery右侧带缩略图导航的焦点图的相关文章

基于jquery左侧带选项卡切换的焦点图

今天给大家分享一款基于jquery左侧带选项卡切换的焦点图.这款焦点图左侧有短标题,单击切换并显示长标题.效果图如下: 在线预览   源码下载 实现的代码. html代码: <div class="film_focus"> <div class="film_focus_desc"> <h3> 标题1</h3> <ul class="film_focus_nav"> <li clas

基于jQuery标题有打字效果的焦点图

给大家分享一款基于jQuery标题有打字效果的焦点图.之前为大家分享了好多jquery的焦点图.这款焦点图适用浏览器:IE8.360.FireFox.Chrome.Safari.Opera.傲游.搜狗.世界之窗. 在线预览   源码下载 实现的代码. html代码: <!-- 代码 开始 --> <div id="header"> <div class="wrap"> <div id="slide-holder&q

一款基于jQuery的全屏广告图片焦点图

之前为大家分享了很多jQuery焦点图插件.今天我们要介绍的这款jQuery全屏广告图片焦点图插件也非常不错,图片切换时有淡出淡出的动画效果,并且也相当流畅.效果图如下: 在线预览   源码下载 实现的代码. html代码: <div class="banner-box"> <div class="bd"> <ul> <li style="background: #F3E5D8;"> <div

右侧带缩略图jQuery焦点图代码

右侧带缩略图jQuery图片特,由huiyi8素材网提供. 源于:http://www.huiyi8.com/tupiantexiao/jquery/

基于jQuery右侧弹出侧边导航栏代码

基于jQuery右侧弹出侧边导航栏代码.这是一款点击按钮弹出侧边导航栏样式特效代码.效果图如下: 在线预览   源码下载 实现的代码. html代码: <div class="box-bj"><img src="images/wd011.jpg" /></div> <div id="mintbar"><a id="closebtn" href="#"&g

基于jquery右侧悬浮加入购物车代码

分享一款基于jquery右侧悬浮加入购物车代码.这是一款基于jQuery实现的仿天猫右侧悬浮加入购物车菜单代码. 在线预览   源码下载 实现的代码: <!--左侧产品parabola.js控制--> <div class="main"> <div id="plist"> <ul> <li> <div class="lh_wrap"> <div class="

基于jquery宽屏菜单导航【精品】

demo预览地址:http://www.qhttl.com/content/view/2014/07/18/jiaoben75/jiaoben75/index.html 下载地址:基于jquery宽屏菜单导航 基于jquery宽屏菜单导航[精品],布布扣,bubuko.com

基于jquery的侧边栏分享导航

今天给大家分享一款基于jquery的侧边栏分享导航.这款分享钮一直固定于左侧,鼠标经过的时候凸出显示,这款分享按钮适用浏览器:IE8.360.FireFox.Chrome.Safari.Opera.傲游.搜狗.世界之窗. 在线预览   源码下载 实现的代码. html代码: <div class="zzsc"> <a href="http://www.w2bc.com/" class="lanren1"> <img

基于jQuery手风琴带玻璃流光质感

基于jQuery手风琴带玻璃流光质感特效.这是一款基于jQuery+CSS3实现的带玻璃流光质感的手风琴特效.效果图如下: 在线预览   源码下载 实现的代码. html代码: <section class="strips"> <article class="strips__strip"> <div class="strip__content"> <h1 class="strip__title&