댓글 검색 목록

[bootstrap] Bootstrap Image Gallery

페이지 정보

작성자 운영자 작성일 18-10-21 00:20 조회 1,441 댓글 0

https://blueimp.github.io/Gallery/


모바일 및 데스크톱 웹 브라우저에 최적화 된 터치 가능, 반응 및 맞춤형 이미지 및 비디오 갤러리, 캐러셀 및 라이트 박스


https://github.com/blueimp/Gallery


<link rel="stylesheet" href="css/blueimp-gallery.min.css">


<!-- The Gallery as lightbox dialog, should be a child element of the document body -->
<div id="blueimp-gallery" class="blueimp-gallery">
    <div class="slides"></div>
    <h3 class="title"></h3>
    <a class="prev">‹</a>
    <a class="next">›</a>
    <a class="close">×</a>
    <a class="play-pause"></a>
    <ol class="indicator"></ol>
</div>


<script src="js/blueimp-gallery.min.js"></script>


<div id="links">
    <a href="images/banana.jpg" title="Banana">
        <img src="images/thumbnails/banana.jpg" alt="Banana">
    </a>
    <a href="images/apple.jpg" title="Apple">
        <img src="images/thumbnails/apple.jpg" alt="Apple">
    </a>
    <a href="images/orange.jpg" title="Orange">
        <img src="images/thumbnails/orange.jpg" alt="Orange">
    </a>
</div>


<script>
document.getElementById('links').onclick = function (event) {
    event = event || window.event;
    var target = event.target || event.srcElement,
        link = target.src ? target.parentNode : target,
        options = {index: link, event: event},
        links = this.getElementsByTagName('a');
    blueimp.Gallery(links, options);
};
</script>




댓글목록 0

등록된 댓글이 없습니다.

웹학교 로고

온라인 코딩학교

코리아뉴스 2001 - , All right reserved.