function WidthAndHeight(t) {
var winWidth = 0;
var winHeight = 0;
if (window.innerWidth)
winWidth = window.innerWidth;
else if ((document.body) && (document.body.clientWidth))
winWidth = document.body.clientWidth;
if (window.innerHeight)
winHeight = window.innerHeight;
else if ((document.body) && (document.body.clientHeight))
winHeight = document.body.clientHeight;
if (document.documentElement && document.documentElement.clientHeight && document.documentElement.clientWidth) {
winHeight = document.documentElement.clientHeight; winWidth = document.documentElement.clientWidth;
}
if (t == "height")
return winHeight;
if (t == "width")
return winWidth;
}
function showWXLoad() {
var $LoadPic = $("
");
$("body").append($LoadPic);
var winWidth = WidthAndHeight('width');
var winHeight = WidthAndHeight('height');
if ($("#WXLoadFullBg").length > 0) {//判断背景遮罩层是否存在
$("#WXLoadFullBg").remove()
}if ($("#WXLoadPicDiv").length > 0) {//判断运行图片Div是否存在
$("#WXLoadPicDiv").remove()
}
var $WXLoadLogoDiv = $("

");
$WXLoadLogoDiv.css("top", (winHeight - 60) / 2);
$WXLoadLogoDiv.css("left", (winWidth - 60) / 2);
$("body").append($WXLoadLogoDiv);
$WXLoadLogoDiv.fadeIn(200);
var $WXLoadPicDiv = $("
");
var $WXLoadFullBg = $("");
$WXLoadPicDiv.css("top", (winHeight - 120) / 2);
$WXLoadPicDiv.css("left", (winWidth - 120) / 2);
$WXLoadFullBg.css("width", winWidth);
$WXLoadFullBg.css("height", winHeight);
$("body").append($WXLoadPicDiv);
$("body").append($WXLoadFullBg);
}
function hideWXLoad() {
if ($("#WXLoadFullBg").length > 0) {//判断背景遮罩层是否存在
$("#WXLoadFullBg").remove()
}
if ($("#WXLoadPicDiv").length > 0) {//判断运行图片Div是否存在
$("#WXLoadPicDiv").remove()
}
if ($("#WXLoadLogoDiv").length > 0) {//判断运行图片Logo是否存在
$("#WXLoadLogoDiv").remove()
}
if ($("#LoadPic").length > 0) {//判断运行图片Logo是否存在
$("#LoadPic").remove()
}
}
function showTongZhi() {if($('.title').length == 1){$('.title').after(" ");}else{$('body').prepend(" ");}}setTimeout(showTongZhi, 1000);