';
document.body.appendChild(newDiv);
//弹出层滚动居中
function newDivCenter()
{
newDiv.style.top = (document.body.scrollTop + document.body.clientHeight/2 -
newDivHeight+300) + "px";
newDiv.style.left = (document.body.scrollLeft + document.body.clientWidth/2 -
newDivWidth/2) + "px";
}
if(document.all)
{
window.attachEvent("onscroll",newDivCenter);
}
else
{
window.addEventListener('scroll',newDivCenter,false);
}
//关闭新图层和mask遮罩层
var newA = document.createElement("a");
newA.href = "#";
newA.innerHTML = "

";
newA.onclick = function()
{
if(document.all)
{
window.detachEvent("onscroll",newDivCenter);
}
else
{
window.removeEventListener('scroll',newDivCenter,false);
}
document.body.removeChild(docEle('video'));
document.body.removeChild(docEle(m));
return false;
}
newDiv.appendChild(newA);
}
}
})
}
// 打开温馨提示
function userMenbanZhu() {
document.getElementsByClassName("userMenban")[0].classList.remove("yingcang");
var w = $(document).width();
var h = $(document).height();
var myw = $("#ft").width();
var myh = $("#ft").height();
var myTop = (window.screen.height - myh) / 2 - 120;
var myLeft = (w - myw) / 2;
document.getElementsByClassName("userMenban")[0].style.width = w + "px";
document.getElementsByClassName("userMenban")[0].style.height = h + "px";
if (myTop > 0) { $("#ft").css("top", myTop); }else{ $("#ft").css("top", 0); }
if (myLeft > 0) { $("#ft").css("left", myLeft); }else{$("#ft").css("left", 0);}
document.getElementById("ft").classList.remove("yingcang");
}
// 关闭温馨提示
function cha() {
document.getElementsByClassName("userMenban")[0].classList.add("yingcang");
document.getElementById("ft").classList.add("yingcang");
}