A very good effect of the jquery plugin-lightbox

Source: Internet
Author: User

Today we introduce a very good jquery image to see the plugin-lightbox. This picture view plug-in experience is very good, not only the left and right two small arrows can browse the previous and next picture, but also support the mouse around the key to browse the previous and next picture. It's a bit like a Google Picture viewer. Look together:

Online preview Source Download

Let's look at the implementation code together:

HTML code:

<DivID= "wrapper">        <H1>Responsive Lightbox Portfolio</H1>        <ulID= "Portfolio"class= "Clearfix">            <Li><ahref= "Img/[email protected]"title= "Brick and Bay Windows">                <imgsrc= "Img/item01.jpg"alt= "Brick and by Windows"></a></Li>            <Li><ahref= "Img/[email protected]"title= "Simple IPad Icons">                <imgsrc= "Img/item02.jpg"alt= "Old-style ipad Icons"></a></Li>            <Li><ahref= "Img/[email protected]"title= "Mobile profile">                <imgsrc= "Img/item03.jpg"alt= "Mobile iphone App profile UI"></a></Li>            <Li><ahref= "Img/[email protected]"title= "New Shoes">                <imgsrc= "Img/item04.jpg"alt= "New Balance Shoes"></a></Li>            <Li><ahref= "Img/[email protected]"title= "Rive Radio Icon">                <imgsrc= "Img/item05.jpg"alt= "Rive Radio Icon"></a></Li>            <Li><ahref= "Img/[email protected]"title= "Blood pressure app">                <imgsrc= "Img/item06.jpg"alt= "blood pressure app UI"></a></Li>            <Li><ahref= "Img/[email protected]"title= "Memories Feed UI">                <imgsrc= "Img/item07.jpg"alt= "Memories Feed UI iphone"></a></Li>            <Li><ahref= "Img/[email protected]"title= "Vector Devices">                <imgsrc= "Img/item08.jpg"alt= "Apple device vector icons"></a></Li>        </ul>    </Div>
View Code

JS Code:

$(function () {            $(' #portfolio '). Magnificpopup ({delegate:A, type:' Image ', Image: {cursor:NULL, TITLESRC:' Title '}, Gallery: {enabled:true, preload: [0, 1],//Would preload 0-before current, and 1 after the current imageNavigatebyimgclick:true                }            }); });
View Code

Note: This article Love programming original article, reproduced please specify the original address: http://www.w2bc.com/Article/5720

A very good effect of the jquery plugin-lightbox

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.