弹出窗口 <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();"></div>"; <br> var sbar = document.getElementById("statusbar"); <br> sbar.style.marginTop = (parseInt(h)-60) "px"; <br> popUp.style.visibility = "visible"; <br>} <br>function hidePopup(){ <br> var popUp = document.getElementById("popupcontent"); <br> popUp.style.visibility = "hidden"; <br>} <br></script>
onclick