.popWindow{background-color: #ffffff;border-radius: 3px;border: 2px solid #075E8B;position: absolute;display: none;box-shadow: 5px 5px 5px #322E2F;z-index: 999;}
function popWindowShow(url, height, width, title) {
var popWindow = document.getElementById("popWindow");
var popFrame = document.getElementById("popFrame");
var popWindowBg = document.getElementById("popWindowBg");
popWindow.style.left = (document.body.scrollWidth - width) / 2;
popWindow.style.top = (document.body.scrollHeight - height) / 2 - 50;
popWindow.style.width = width;
popWindow.style.height = height;
document.getElementById("titleTd").innerHTML = title;
popFrame.style.height = height - 22; //设置Iframe的高度为DIV的高度减去标题栏的高度
popFrame.src = url; //设置iframe里的页面
popWindow.style.display = "block";
popWindowBg.style.display = "block";
}
function popWindowHide() {
document.getElementById("popWindow").style.display = "none";
document.getElementById("popWindowBg").style.display = "none";
}
新窗口-东哥的标题 | |
一键复制
编辑
Web IDE
原始数据
按行查看
历史