페이지 제출 시 중복 제출을 방지하고 숨김 레이어 만들기

816 단어 JavaScriptcss

function wait() {
	var div = document.createElement("DIV");
	div.id = "UnderLay";
	div.name = "UnderLay";
 	//div1.style.width=screen.width;
  	//div1.style.height=screen.height;
 	document.body.appendChild(div);
 	// hide
 	div.style.display = "none";
 	div.onfocus = function(){}
 	div.onclick = function(){}
  	 	
	div.style.display = "";
}


#UnderLay {
	position: absolute;
	width: 110%;
	height: 110%;
	cursor: wait;
	bottom: 0;
	right: 0;
	z-index: 500; /* dessus les popups */
	background: white;
	filter: alpha(opacity=50);
	opacity: .5;	
}


좋은 웹페이지 즐겨찾기