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; }
相关资源:jquery-showloading遮罩层-防重复提交