首页 > 其他 > 详细

jbox 图片的放大与缩小

时间:2015-09-21 12:04:56      阅读:826      评论:0      收藏:0      [点我收藏+]

技术分享

html代码

 <div class="table-box">
        <table style="border:none;">
            <thead>
            <th class="name">图片</th>
            <th class="name"></th>
            <th class="name"></th>
            <th class="name"></th>
            <th class="name"></th>
            <th class="name"></th>
            </thead>
            <tbody>
            <tr>
                <?php $i = 0;foreach ($pictures as $pic): ?>
                <?php if ($i==6): ?>
            </tr>
            <tr>
                <?php $i = 0; endif; ?>
               <td>
                   <img src="<?php echo $pic[‘picturepath‘];?>" alt="<?php echo $pic[‘picturetype‘]; ?>" style="height:80px;width:80px;cursor:pointer" onclick="javascript:CallJbox(‘<?php echo $pic[‘picturepath‘];?>‘,‘<?php echo $pic[‘picturetype‘]?>‘,500,450)"/>
                </td>
                <?php $i++;endforeach; ?>
            </tr>
            </tbody>
        </table>
    </div>
//弹窗显示界面
    function CallJbox(url,title) {
        html = "<img style=‘width:500px;height:450px‘ src=‘" + url + "‘/>";
        $.jBox(html, {
            title:title,
            width: 500,
            height: 450,
            iframeScrolling: ‘yes‘,
            buttons: {}
        });
    }

 

jbox 图片的放大与缩小

原文:http://www.cnblogs.com/lqw4/p/4825665.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!