<div class="codetitle"> <span><a style="CURSOR: pointer" data="41444" class="copybut" id="copybut41444" onclick="doCopy('code41444')"><u>复代码</u></a></span> 代码如下:</div> <div class="codebody" id="code41444"> <br><!DOCTYPE html> <br><html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <br><머리> <br><meta charset="utf-8" /> <br><제목></제목> <br><style type="text/css"> <br>.Div_Scroll { <br>위치:고정; <br>여백:-10px; <br>가시성:숨김; <br>배경색:#808080; <br>불투명도:0.6; <br>z-색인:99; <br>} <br>.Div_Scroll_Content { <br>위치:상대적; <br>마진 최고:20%; <br>너비:상속; <br>키:상속; <br>} <br>.Div_AlertWindow { <br>margin:auto; <br>폭:200px; <br>높이:100px; <br>배경색:연한 파란색; <br>테두리:5px 솔리드 #f00; <br>} <br></style> <br><script type="text/javascript"> <br>window.onload = function () { <br>var AlertWindow = $("alertParent"); <br>alertWindow.style.width = window.screen.availWidth "px"; <br>alertWindow.style.height = window.screen.height "px"; <br>$("확실함").onclick = function () { <br>alertWindow.style.visibility = "숨김"; <br>} <br>} <br>function ShowAlert() { <br>var AlertWindow = $("alertParent"); <br>alertWindow.style.visibility = "표시"; <br>} <br>$ = 함수(id) { <br>return document.getElementById(id); <br>} <br></script> <br></head> <br><본문> <br><div id="alertParent" class="Div_Scroll"> <br><div class="Div_Scroll_Content"> <br><div id="AlertWindow" class="Div_AlertWindow"> <br><input type="button" id="확실함" value="경고 대화상자 닫기..." /> <br></div> <br></div> <br></div> <br><div style="height:1300px; padding-top:200px;" > <br><input id="alertButton" type="button" onclick="ShowAlert();" value="경고 대화상자 표시..."/> <br></div> <br></body> <br></html> <br> </div> <br>添加遮罩层