1. 使用jquery.fbmodel打开弹窗时的坑:
父页面引入fbmodel
<script src="../scripts/jquery.fbmodel.js" type="text/javascript"></script>
点击按钮执行打开新页面按钮
var params = "rnd=" + Math.random() + "&telnum=" + telnum + "&amount=" + amount;
var url = 'airrecharge_confirm.aspx?' + params;
document.getElementById('chargeCfm').src = url;
$(".PopLayout").fbmodal({
okaybutton: true,
cancelbutton: true,
buttons: true,
opacity: 0.35,
fadeout: true,
overlayclose: true,
modaltop: "50%",
modalwidth: "1000"
});
这个按键(input) 若为 submit类型,则模窗打开后会自动关闭,要改为 button类型才可
<input type="button" value="立即充值" class="FormBtn" οnclick="openCfmLayout()" />