请问 象百度知道的 一点我要提问 就弹出一个框 然后哪个框的其他地方都点不了了 这个效果怎么做?

来源:百度知道 编辑:UC知道 时间:2024/05/08 12:47:45
请问 象百度知道的 一点我要提问 就弹出一个框 然后哪个框的其他地方都点不了了 这个效果怎么做?

简单效果如下:

<html>
<head>
</head>
<body>
<p align="center">
<script>
function locking(){
document.all.ly.style.display="block";
document.all.ly.style.width=document.body.clientWidth;
document.all.ly.style.height=document.body.clientHeight;
document.all.Layer2.style.display='block';
document.all.queryName.value="";
document.all.queryName.focus();
}
function Lock_CheckForm(theForm){

document.all.ly.style.display='none';document.all.Layer2.style.display='none';
};
</script>

</p>
<p align="center">

<INPUT TYPE="button" value="弹出层" onclick="locking()">
</p>
<div id="ly" style="position:absolute;top:0px;FILTER: alpha(opacit