您的位置:首页 > 其它

【原】Iframe with SimpleModal keeps breaking down in IE 9 IE 7

2012-07-12 21:59 302 查看
SimpleModal 插件
http://www.ericmmartin.com/projects/simplemodal/
以下代码可以避免在IE中使用simpleModal弹出iframe出错问题

var license_no = ''

$(document).ready(function () {

$('#quote').click(function (e) {

license_no = $(this).attr("licenseNo");

e.preventDefault();

function setSrc() {

$('#frame_content').attr("src", "/default.asp?UrlReferrer=coxIpro&license_no=" + license_no);

}

$.modal('<iframe src="" id="frame_content" style="overflow:auto" scrolling="yes" frameborder="0" height="550px" width="805px">', {

onShow: function (dialog) {

setSrc();

},

// Fix width issue in IE 7

containerCss: {

height: 560,

padding: 0,

width: 810

},

overlayClose: true,

persist: false

});

});

});

@import url(http://www.cnblogs.com/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: