<html>
<head>
<title>测试</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script type="text/javascript" src="jquery-1.6.min.js"></script>
<script type="text/javascript" src="popDiv.js"></script>
</head>
<body>
<script>
$(function(){
$("#showDiv").click(function(){
showPopDiv("popDiv");
});
$('#closeDiv').click(function(){
closePopDiv("popDiv");
});
});
</script>
<input type="button" id="showDiv" value="弹出"/>
看看透明不。
<div id="popDiv" style="display: none; background-color: red;">
这里是我的弹出层
<input type="button" id="closeDiv" value="关闭"/>
</div>
</body>
</html>