自定义弹框
<body>
<script type="text/javascript" src="./js/jquery-1.8.3.js"></script>
<script>
window.onload=function(){
showDiv();
}
function showDiv()
{
var Idiv = document.getElementById("Idiv");
var mou_head = document.getElementById('mou_head');
Idiv.style.display = "block";
Idiv.style.left= (document.documentElement.clientWidth-Idiv.clientWidth)/2+document.documentElement.scrollLeft+"px";
Idiv.style.top =(document.documentElement.clientHeight-Idiv.clientHeight)/2+document.documentElement.scrollTop+"px";
var procbg = document.createElement("div");
procbg.setAttribute("id","mybg");
procbg.style.background = "#000000";
procbg.style.width = "100%";
procbg.style.height = "100%";
procbg.style.position = "fixed"