如何显示设置层,覆盖页面上的所有内容? 用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> js 自定义事件 Ext NumberField 监听事件 求助!IP转换成INT型的问题 JS 动态生成表 后 ONCLICK事件的问题 关于Firefox兼容window.event的写法 ext4设置menu中的菜单项不可用,我这样设置为何无效? 小问题求救 怎样取得mediaPalyer播放的时间值 请问为什么不行,在线html编辑器 在javascript中怎样判断browser是否已经打开了一个URL 批量隐藏节点的问题! 救命!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>