layer弹窗,layer url弹窗,layer div弹窗等

//DIV弹窗
<div   id="edit-content" style="display: none">
    <form   id="form1" name="form1" action="" method="post">
        <input  type="hidden" name="postType" id="postType"  value="1" >
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table2">
               <tr>
                <td  > 银行卡数相同</td>
                <td> <input name="hand_type_9" type="radio" value="1" <?php if(isset($hand_withdraw_set['9']) && $hand_withdraw_set['9']==1) echo 'checked="checked"';?>  >开启验证
                    <input name="hand_type_9" type="radio" value="0" <?php if(!isset($hand_withdraw_set['9']) || $hand_withdraw_set['9']==0) echo 'checked="checked"';?> >关闭验证</td>
            </tr>  
            <tr><td colspan="2"><button type="submit" class="input_button1" style="margin-left: 45%;">确认修改</button></td></tr>
        </table>
    </form>
</div>
<script language="javascript">
    function edit() {
        layer.open({
            type: 1,
            title: "设置",
            area: ['800px', '600px'],
            shadeClose: true, //点击遮罩关闭
            content: $("#edit-content")
        });
    }
</script>
//自定义样式弹窗
<script language="javascript"> 
   var handTypeJson = "<?=json_encode($handTypeConst);?>";
    var handTypeConst = JSON.parse(handTypeJson);
    function showDetailHandType(handType){
        var handTypeArr = handType.split(',');
        var tableHtml = '<table width="80%" border="0" cellspacing="1" cellpadding="0" style="margin: 10px 10px">';
        for(key in handTypeArr){
            tableHtml += '<tr><td height="30" width="40">' + handTypeConst[handTypeArr[key]] + '</td></tr>';
        }
        tableHtml += '</table>';
        layer.open({
            type: 1,
            title: "详情",
            area: ['800px', '600px'],
            shadeClose: true, //点击遮罩关闭
            content: tableHtml
        });
    }
</script>
onclick="layer_show('info.php?uid=<?=$val['uid'];?>','查看',75,80)"

function layer_show(url,title,w,h){
    if (title == null || title == '') {
        title='data';
    };
    if (url == null || url == '') {
        url="404.html";
    };
    if (w == null || w == '') {
        w=100;
    };
    if (h == null || h == '') {
        h=100;
    };
    layer.open({
        type: 2,
        area: [w+'%', h +'%'],
      //  fix: false, //?????
     //   maxmin: true,
        shade:0.4,
        title: title,
        shadeClose: true, //?????????
        content: url
    });
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值