window.alert = function(str)
{
var Shield = document.createElement("DIV");
shield.id = "shield";
shield.style.position = "absolute"
shield.style.left = "0px ";
shield.style.top = "0px";
shield.style.width = "100%";
shield.style.height = document.body.scrollHeight "px";
//팝업 대화 상자의 배경색
shield.style.ground = "#fff"
shield.style.textAlign = "center"
shield.style.zIndex = "25" ;
/ /배경 투명 IE 유효
//shield.style.filter = "alpha(opacity=0)"
var AlertFram = document.createElement("DIV")
alertFram. id="alertFram" ;
alertFram.style.position = "절대";
alertFram.style.left = "50%"
alertFram.style.top = "50%"; AlertFram.style.marginLeft = "-225px";
alertFram.style.marginTop = "-75px";
alertFram.style.width = "450px"
alertFram.style.height = "150px" ;
alertFram .style.Background = "#ff0000";
alertFram.style.textAlign = "center";
alertFram.style.lineHeight = "150px"
alertFram.style.zIndex = "300";
strHtml = "
n";
alertFram.innerHTML = strHtml;
document.body.appendChild(alertFram); 🎜>document.body.appendChild(shield);
var ad = setInterval("doAlpha()",5);
this.doOk = function(){
alertFram.style.display = "없음 ";
shield.style.display = "none";
}
alertFram.focus();
document.body.onselectstart = function(){return false;};
}
효과는 사진과 같습니다