[html]
弹出窗口
<script> <BR>var baseText = null; <BR>function showPopup(w,h){ <BR> var popUp = document.getElementById("popupcontent"); <BR> popUp.style.top = "200px"; <BR> popUp.style.left = "200px"; <BR> popUp.style.width = w "px"; <BR> popUp.style.height = h "px"; <BR> if (baseText == null) baseText = popUp.innerHTML; <BR> popUp.innerHTML = baseText "<div id="statusbar"><input type="button" value="Close window" onClick="hidePopup();"></script>
";
var sbar = document.getElementById("statusbar");
sbar.style.marginTop = (parseInt(h)-60) "px";
popUp.style.visibility = "visible";
}
function hidePopup(){
var popUp = document.getElementById("popupcontent");
popUp.style.visibility = "hidden";
}
onclick
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn