资讯中心
News
上海企业如何在网站建设中实现页面半透明锁定js函数
发布时间:2019-01-18 23:47   您所在的位置: 网站首页 > 新闻资讯 > 行业动态
上海网站设计中如何实现页面半透明锁定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';
}
本文章由新概念互动原创,如没特殊注明,转载请注明来自:http://www.jianzhan0.com/dongtai/21918.html