基于jQuery实现图片相册点击显示大图画廊插件



62 246 83



特效描述:基于jQuery实现 图片相册 点击显示大图 画廊插件,基于jQuery实现图片相册点击显示大图画廊插件

代码结构

1. 引入CSS

<link href="css/style.min.css?12122013" rel="stylesheet" />
<link href="css/least.min.css" rel="stylesheet" />
<link href="css/prism.min.css" rel="stylesheet" />

2. 引入JS

<script src="js/jquery.min.js"></script>
<script src="js/jquery.lazyload.min.js"></script>
<script src="js/least.min.js?03072013"></script>
<script src="js/prism.js"></script>

3. HTML代码

        <!-- Gallery -->
        <section>
            <ul id="gallery">
                <li id="fullPreview"></li>
                <!-- 1 -->
                <li>
                    <a href="img/full/1.jpg"></a>
                    <img data-original="img/thumb/1.jpg" src="img/effects/white.gif" width="240" height="150" alt="Photo" />
                    <div class="overLayer"></div>
                    <div class="infoLayer">
                        <ul>
                            <li>
                                <h2>
                                    Photo   
                                </h2>
                            </li>
                            <li>
                                <p>
                                    View Picture
                                </p>
                            </li>
                        </ul>
                    </div>
                    <div class="projectInfo">
                        <strong>Day, Month, Year:</strong> sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
                    </div>
                </li>
                <!-- 2 -->
                <li>
                    <a href="img/full/2.jpg"></a>
                    <img data-original="img/thumb/2.jpg" src="img/effects/white.gif" width="240" height="150" alt="Photo" />
                    <div class="overLayer"></div>
                    <div class="infoLayer">
                        <ul>
                            <li>
                                <h2>
                                    Photo   
                                </h2>
                            </li>
                            <li>
                                <p>
                                    View Picture
                                </p>
                            </li>
                        </ul>
                    </div>
                    <p class="projectInfo">
                        <strong>Day, Month, Year:</strong> sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
                    </p>
                </li>
                <!-- 3 -->
                <li>
                    <a href="img/full/3.jpg"></a>
                    <img data-original="img/thumb/3.jpg" src="img/effects/white.gif" width="240" height="150" alt="Photo" />
                    <div class="overLayer"></div>
                    <div class="infoLayer">
                        <ul>
                            <li>
                                <h2>
                                    Photo     
                                </h2>
                            </li>
                            <li>
                                <p>
                                    View Picture
                                </p>
                            </li>
                        </ul>
                    </div>
                    <p class="projectInfo">
                        <strong>Day, Month, Year:</strong> sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
                    </p>
                </li>
                <!-- 4 -->
                <li>
                    <a href="img/full/4.jpg"></a>
                    <img data-original="img/thumb/4.jpg" src="img/effects/white.gif" width="240" height="150" alt="Photo" />
                    <div class="overLayer"></div>
                    <div class="infoLayer">
                        <ul>
                            <li>
                                <h2>
                                    Photo     
                                </h2>
                            </li>
                            <li>
                                <p>
                                    View Picture
                                </p>
                            </li>
                        </ul>
                    </div>
                    <p class="projectInfo">
                        <strong>Day, Month, Year:</strong> sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
                    </p>
                </li>
                <!-- 5 -->
                <li>
                    <a href="img/full/5.jpg"></a>
                    <img data-original="img/thumb/5.jpg" src="img/effects/white.gif" width="240" height="150" alt="Photo" />
                    <div class="overLayer"></div>
                    <div class="infoLayer">
                        <ul>
                            <li>
                                <h2>
                                    Photo 
                                </h2>
                            </li>
                            <li>
                                <p>
                                    View Picture
                                </p>
                            </li>
                        </ul>
                    </div>
                    <p class="projectInfo">
                        <strong>Day, Month, Year:</strong> sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
                    </p>
                </li>
                <!-- 6 -->
                <li>
                    <a href="img/full/6.jpg"></a>
                    <img data-original="img/thumb/6.jpg" src="img/effects/white.gif" width="240" height="150" alt="Photo" />
                    <div class="overLayer"></div>
                    <div class="infoLayer">
                        <ul>
                            <li>
                                <h2>
                                    Photo    
                                </h2>
                            </li>
                            <li>
                                <p>
                                    View Picture
                                </p>
                            </li>
                        </ul>
                    </div>
                    <p class="projectInfo">
                        <strong>Day, Month, Year:</strong> sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
                    </p>
                </li>
                <!-- 7 -->
                <li>
                    <a href="img/full/7.jpg"></a>
                    <img data-original="img/thumb/7.jpg" src="img/effects/white.gif" width="240" height="150" alt="Photo" />
                    <div class="overLayer"></div>
                    <div class="infoLayer">
                        <ul>
                            <li>
                                <h2>
                                    Photo    
                                </h2>
                            </li>
                            <li>
                                <p>
                                    View Picture
                                </p>
                            </li>
                        </ul>
                    </div>
                    <p class="projectInfo">
                        <strong>Day, Month, Year:</strong> sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
                    </p>
                </li>
                <!-- 8 -->
                <li>
                    <a href="img/full/8.jpg"></a>
                    <img data-original="img/thumb/8.jpg" src="img/effects/white.gif" width="240" height="150" alt="Photo" />
                    <div class="overLayer"></div>
                    <div class="infoLayer">
                        <ul>
                            <li>
                                <h2>
                                    Photo   
                                </h2>
                            </li>
                            <li>
                                <p>
                                    View Picture
                                </p>
                            </li>
                        </ul>
                    </div>
                    <p class="projectInfo">
                        <strong>Day, Month, Year:</strong> sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
                    </p>
                </li>
                <!-- 9 -->
                <li>
                    <a href="img/full/9.jpg"></a>
                    <img data-original="img/thumb/9.jpg" src="img/effects/white.gif" width="240" height="150" alt="Photo" />
                    <div class="overLayer"></div>
                    <div class="infoLayer">
                        <ul>
                            <li>
                                <h2>
                                    Photo  
                                </h2>
                            </li>
                            <li>
                                <p>
                                    View Picture
                                </p>
                            </li>
                        </ul>
                    </div>
                    <p class="projectInfo">
                        <strong>Day, Month, Year:</strong> sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
                    </p>
                </li>
                <!-- 10 -->
                <li>
                    <a href="img/full/10.jpg"></a>
                    <img data-original="img/thumb/10.jpg" src="img/effects/white.gif" width="240" height="150" alt="Photo" />
                    <div class="overLayer"></div>
                    <div class="infoLayer">
                        <ul>
                            <li>
                                <h2>
                                    Photo   
                                </h2>
                            </li>
                            <li>
                                <p>
                                    View Picture
                                </p>
                            </li>
                        </ul>
                    </div>
                    <p class="projectInfo">
                        <strong>Day, Month, Year:</strong> sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
                    </p>
                </li>
                <!-- 11 -->
                <li>
                    <a href="img/full/11.jpg"></a>
                    <img data-original="img/thumb/11.jpg" src="img/effects/white.gif" width="240" height="150" alt="Photo" />
                    <div class="overLayer"></div>
                    <div class="infoLayer">
                        <ul>
                            <li>
                                <h2>
                                    Photo    
                                </h2>
                            </li>
                            <li>
                                <p>
                                    View Picture
                                </p>
                            </li>
                        </ul>
                    </div>
                    <p class="projectInfo">
                        <strong>Day, Month, Year:</strong> sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
                    </p>
                </li>
                <!-- 12 -->
                <li>
                    <a href="img/full/12.jpg"></a>
                    <img data-original="img/thumb/12.jpg" src="img/effects/white.gif" width="240" height="150" alt="Photo" />
                    <div class="overLayer"></div>
                    <div class="infoLayer">
                        <ul>
                            <li>
                                <h2>
                                    Photo    
                                </h2>
                            </li>
                            <li>
                                <p>
                                    View Picture
                                </p>
                            </li>
                        </ul>
                    </div>
                    <p class="projectInfo">
                        <strong>Day, Month, Year:</strong> sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
                    </p>
                </li>
                <!-- 13 -->
                <li>
                    <a href="img/full/13.jpg"></a>
                    <img data-original="img/thumb/13.jpg" src="img/effects/white.gif" width="240" height="150" alt="Photo" />
                    <div class="overLayer"></div>
                    <div class="infoLayer">
                        <ul>
                            <li>
                                <h2>
                                    Photo    
                                </h2>
                            </li>
                            <li>
                                <p>
                                    View Picture
                                </p>
                            </li>
                        </ul>
                    </div>
                    <p class="projectInfo">
                        <strong>Day, Month, Year:</strong> sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
                    </p>
                </li>
                <!-- 14 -->
                <li>
                    <a href="img/full/14.jpg"></a>
                    <img data-original="img/thumb/14.jpg" src="img/effects/white.gif" width="240" height="150" alt="Photo" />
                    <div class="overLayer"></div>
                    <div class="infoLayer">
                        <ul>
                            <li>
                                <h2>
                                    Photo     
                                </h2>
                            </li>
                            <li>
                                <p>
                                    View Picture
                                </p>
                            </li>
                        </ul>
                    </div>
                    <p class="projectInfo">
                        <strong>Day, Month, Year:</strong> sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
                    </p>
                </li>
                <!-- 15 -->
                <li>
                    <a href="img/full/15.jpg"></a>
                    <img data-original="img/thumb/15.jpg" src="img/effects/white.gif" width="240" height="150" alt="Photo" />
                    <div class="overLayer"></div>
                    <div class="infoLayer">
                        <ul>
                            <li>
                                <h2>
                                    Photo   
                                </h2>
                            </li>
                            <li>
                                <p>
                                    View Picture
                                </p>
                            </li>
                        </ul>
                    </div>
                    <p class="projectInfo">
                        <strong>Day, Month, Year:</strong> sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
                    </p>
                </li>
                <!-- 16 -->
                <li>
                    <a href="img/full/16.jpg"></a>
                    <img data-original="img/thumb/16.jpg" src="img/effects/white.gif" width="240" height="150" alt="Photo" />
                    <div class="overLayer"></div>
                    <div class="infoLayer">
                        <ul>
                            <li>
                                <h2>
                                    Photo  
                                </h2>
                            </li>
                            <li>
                                <p>
                                    View Picture
                                </p>
                            </li>
                        </ul>
                    </div>
                    <p class="projectInfo">
                        <strong>Day, Month, Year:</strong> sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
                    </p>
                </li>
                <!-- 17 -->
                <li>
                    <a href="img/full/17.jpg"></a>
                    <img data-original="img/thumb/17.jpg" src="img/effects/white.gif" width="240" height="150" alt="Photo" />
                    <div class="overLayer"></div>
                    <div class="infoLayer">
                        <ul>
                            <li>
                                <h2>
                                    Photo     
                                </h2>
                            </li>
                            <li>
                                <p>
                                    View Picture
                                </p>
                            </li>
                        </ul>
                    </div>
                    <p class="projectInfo">
                        <strong>Day, Month, Year:</strong> sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
                    </p>
                </li>
                <!-- 18 -->
                <li>
                    <a href="img/full/18.jpg"></a>
                    <img data-original="img/thumb/18.jpg" src="img/effects/white.gif" width="240" height="150" alt="Photo" />
                    <div class="overLayer"></div>
                    <div class="infoLayer">
                        <ul>
                            <li>
                                <h2>
                                    Photo   
                                </h2>
                            </li>
                            <li>
                                <p>
                                    View Picture
                                </p>
                            </li>
                        </ul>
                    </div>
                    <p class="projectInfo">
                        <strong>Day, Month, Year:</strong> sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
                    </p>
                </li>
                <!-- 19 -->
                <li>
                    <a href="img/full/19.jpg"></a>
                    <img data-original="img/thumb/19.jpg" src="img/effects/white.gif" width="240" height="150" alt="Photo" />
                    <div class="overLayer"></div>
                    <div class="infoLayer">
                        <ul>
                            <li>
                                <h2>
                                    Photo     
                                </h2>
                            </li>
                            <li>
                                <p>
                                    View Picture
                                </p>
                            </li>
                        </ul>
                    </div>
                    <p class="projectInfo">
                        <strong>Day, Month, Year:</strong> sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
                    </p>
                </li>
                <!-- 20 -->
                <li>
                    <a href="img/full/20.jpg"></a>
                    <img data-original="img/thumb/20.jpg" src="img/effects/white.gif" width="240" height="150" alt="Photo" />
                    <div class="overLayer"></div>
                    <div class="infoLayer">
                        <ul>
                            <li>
                                <h2>
                                    Photo     
                                </h2>
                            </li>
                            <li>
                                <p>
                                    View Picture
                                </p>
                            </li>
                        </ul>
                    </div>
                    <p class="projectInfo">
                        <strong>Day, Month, Year:</strong> sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
                    </p>
                </li>
            </ul>
        </section>
        <!-- / Gallery -->
        <script>
        $(document).ready(function(){
            $('#gallery').least();
        });
        </script>
<div style="text-align:center;clear:both">
</div>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 图片拖动 图片放大镜 图片叠加 图片翻转旋转 图片延迟加载 图片淡出淡进 图片全屏 图片头像上传 二维码 滚动切换 滑动选项卡切换 图片广告 图片放大缩小 html5图片动画 带缩略图的幻灯片 地图 图片滚动 图片滑动 图片切换 图片收缩展开 旋转木马 图片轮播 自动滚动图片轮播 图标导航菜单 选项卡切换 滑动手风琴 背景切换 手风琴 收缩展开 图表 图片 头像截图 图片相册 图片切换 图片收缩展开 图片列表

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到