使用openDIV.js做遮罩层
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>openDiv 实例</title>
<script type="text/javascript" src="openDiv.js"></script>
<script type="text/javascript">
// 调用Demo即可。
function Demo(string){
ScreenConvert();
var ShowDiv="<div style=\"padding:10px;\">"+string+" <br /><br /><input type=\"button\" onclick=\"DialogHide();\" value=\" 关闭 \"></div>";
DialogShow(ShowDiv,250,120,300,100);
}
</script>
</head>
<body>
<input type="text" name="ss" value="sdfsdf"/>
<input type="button" value="显示遮罩层" onclick="Demo('dsfsdfdsfs')"/>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</body>
</html>
文件及案例: