首页 » 技术分享 » jquery-photo-gallery图片查看器

jquery-photo-gallery图片查看器

 

<script src="${path}/resources/jquery-photo-gallery/jquery.photo.gallery.js"></script>
<div class="layui-body">
        <div style="padding: 15px;">
            <span class="font-blue" onclick="see()">查看</span>
            <div class="gallerys" id="lookImg" style="display: none">
                <img class="gallery-pic" src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1590577715954&di=5ca62390dfff3f212dd2353176c16889&imgtype=0&src=http%3A%2F%2Fpic1.win4000.com%2Fwallpaper%2F2018-07-19%2F5b50781d328f1.jpg"
                     onclick="$.openPhotoGallery(this)"/>
                <img class="gallery-pic" src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1590577715954&di=4e2225acd56dc86892b0e89c30eb2ec5&imgtype=0&src=http%3A%2F%2Fattach.bbs.miui.com%2Fforum%2F201310%2F19%2F235356fyjkkugokokczyo0.jpg"
                     onclick="$.openPhotoGallery(this)"/>
                <img class="gallery-pic" src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1590577804932&di=c360ac9a475bdc7bbfa43d961550af7e&imgtype=0&src=http%3A%2F%2Fimg3.imgtn.bdimg.com%2Fit%2Fu%3D2155983538%2C3860699715%26fm%3D214%26gp%3D0.jpg"
                     onclick="$.openPhotoGallery(this)"/>
            </div>

        </div>
    </div>
<script>


    function  see() {
        <%--$("#lookImg img").attr('src', "${path}" + obj.data.receiptPath);--%>
        setTimeout(function () {
            $("#lookImg img")[0].click()
        }, 100)
    }



</script>

转载自原文链接, 如需删除请联系管理员。

原文链接:jquery-photo-gallery图片查看器,转载请注明来源!

0