ASP如何弹出网页形式对话框
来源:百度知道 编辑:UC知道 时间:2024/06/08 04:38:03
<div style="position:absolute;z-index:2;top:0px;let:0px;background-color:#000000;filter:alpha(opacity=50);display:none;" id="bg"></div>
<script>
function setLogin(ID){
//背景层---------------------------------------------------------------
if(document.body.scrollWidth > window.screen.availWidth){
document.getElementById("bg").style.width =document.body.scrollWidth;
document.getElementById("bg").style.height=document.body.scrollHeight;
}else{
document.getElementById("bg").style.width =window.screen.availWidth;;
document.getElementById("bg").style.height=window.screen.availHeight;;
}
document.getElementById("bg").style.left=0
document.getElementById("bg").style.display="block";
document.getElementById("bg1").style.width =document.body.scrollWidth;
document.getElementById("