如何显示设置层,覆盖页面上的所有内容? 用setinterval定时判断层的visiblity属性,如果不是hidden,就定时改变层的width和height的值,如果为hidden,就清除这个setinterval 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <body style="height:100%;"><input type="button" value="Disable" onClick="disablePage()"><div id="cover" style="background-color:#EEEEEE;"></div><script>function disablePage(){ document.getElementById("cover").style.position="absolute";document.getElementById("cover").style.top=0;document.getElementById("cover").style.left=0;document.getElementById("cover").style.width=window.screen.width-21;document.getElementById("cover").style.height=document.body.clientHeight+document.body.scrollHeight;document.getElementById("cover").style.zIndex=100;}</script></body> 在网页上如何用正则表达式限制文本框的输入格式,如“2005-05” javascript连接oracle数据库 急!EasyUI中tree和struts2的整合问题 关于JS中的冒号用法 童子们!怎样在客户端获得上文件文件的大小? 请教javascript当中当中如何根据用户的分辨率调整页面大小 高分,求一个可编辑的list!在线......... 如何取消原来的键盘事件? 求用window.open()在同一个窗口打开新页的参数? 求前端大神帮忙,JS图片涂抹后保存功能 批量隐藏节点的问题! 救命!javascript操作Dom的问题!急!急!急!
<input type="button" value="Disable" onClick="disablePage()"><div id="cover" style="background-color:#EEEEEE;"></div>
<script>
function disablePage(){
document.getElementById("cover").style.position="absolute";
document.getElementById("cover").style.top=0;
document.getElementById("cover").style.left=0;
document.getElementById("cover").style.width=window.screen.width-21;
document.getElementById("cover").style.height=document.body.clientHeight+document.body.scrollHeight;
document.getElementById("cover").style.zIndex=100;}
</script>
</body>