在
上海网站设计中如何实现页面半透明锁定js函数
/*页面半透明锁定函数
所需页面中需添加
添加所需css
body{ height:100%;}
.yin{ width:100%; background:#CCCCCC; position:absolute; left:0;right:0; top:0; bottom:0; -moz-opacity:0.5;filter:alpha(opacity=50);z-index:99; height:100%; }*/
function pageDivLock(){
document.body.style.height=document.documentElement.clientHeight+'px';*/
document.getElementByIdx('yin').className='yin';
document.getElementByIdx('yin').style.display='';
document.getElementByIdx('yin').style.height=document.body.scrollHeight+'px';
}
function pageDivLockClose(){
document.getElementByIdx('yin').className='';
document.getElementByIdx('yin').style.display='none';
}