function addEvent13(obj, evtType, func, cap) { cap = cap || false; if (obj.addEventListener) { obj.addEventListener(evtType, func, cap); return true; } else if (obj.attachEvent) { if (cap) { obj.setCapture(); return true; } else { return obj.attachEvent("on" + evtType, func); } } else { return false; } } function getPageScroll13() { var xScroll, yScroll; if (self.pageXOffset) { xScroll = self.pageXOffset; } else if (document.documentElement && document.documentElement.scrollLeft) { xScroll = document.documentElement.scrollLeft; } else if (document.body) { xScroll = document.body.scrollLeft; } if (self.pageYOffset) { yScroll = self.pageYOffset; } else if (document.documentElement && document.documentElement.scrollTop) { yScroll = document.documentElement.scrollTop; } else if (document.body) { yScroll = document.body.scrollTop; } arrayPageScroll = new Array(xScroll, yScroll); return arrayPageScroll; } function GetPageSize13() { var xScroll, yScroll; if (window.innerHeight && window.scrollMaxY) { xScroll = document.body.scrollWidth; yScroll = window.innerHeight + window.scrollMaxY; } else if (document.body.scrollHeight > document.body.offsetHeight) { xScroll = document.body.scrollWidth; yScroll = document.body.scrollHeight; } else { xScroll = document.body.offsetWidth; yScroll = document.body.offsetHeight; } var windowWidth, windowHeight; if (self.innerHeight) { windowWidth = self.innerWidth; windowHeight = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) { windowWidth = document.documentElement.clientWidth; windowHeight = document.documentElement.clientHeight; } else if (document.body) { windowWidth = document.body.clientWidth; windowHeight = document.body.clientHeight; } if (yScroll < windowHeight) { pageHeight = windowHeight; } else { pageHeight = yScroll; } if (xScroll < windowWidth) { pageWidth = windowWidth; } else { pageWidth = xScroll; } arrayPageSize = new Array(pageWidth, pageHeight, windowWidth, windowHeight) return arrayPageSize; } var AdMoveConfig13 = new Object(); AdMoveConfig13.IsInitialized = false; AdMoveConfig13.ScrollX = 0; AdMoveConfig13.ScrollY = 0; AdMoveConfig13.MoveWidth = 0; AdMoveConfig13.MoveHeight = 0; AdMoveConfig13.Resize = function () { var winsize13 = GetPageSize13(); AdMoveConfig13.MoveWidth = winsize13[2]; AdMoveConfig13.MoveHeight = winsize13[3]; AdMoveConfig13.Scroll(); } AdMoveConfig13.Scroll = function () { var winscroll13 = getPageScroll13(); AdMoveConfig13.ScrollX = winscroll13[0]; AdMoveConfig13.ScrollY = winscroll13[1]; } addEvent13(window, "resize", AdMoveConfig13.Resize); addEvent13(window, "scroll", AdMoveConfig13.Scroll); function AdMove13(id) { if (!AdMoveConfig13.IsInitialized) { AdMoveConfig13.Resize(); AdMoveConfig13.IsInitialized = true; } var obj13 = document.getElementById(id); obj13.style.position = "absolute"; var W13 = AdMoveConfig13.MoveWidth - obj13.offsetWidth; var H13 = AdMoveConfig13.MoveHeight - obj13.offsetHeight; var x13 = W13 * Math.random(), y13 = H13 * Math.random(); var rad13 = (Math.random() + 1) * Math.PI / 6; var kx13 = Math.sin(rad13), ky13 = Math.cos(rad13); var dirx13 = (Math.random() < 0.5 ? 1 : -1), diry13 = (Math.random() < 0.5 ? 1 : -1); var step13 = 1; var interval13; this.SetLocation = function (vx13, vy13) { x13 = vx13; y13 = vy13; } this.SetDirection = function (vx13, vy13) { dirx13 = vx13; diry13 = vy13; } obj13.CustomMethod = function () { obj13.style.left = (x13 + AdMoveConfig13.ScrollX) + "px"; obj13.style.top = (y13 + AdMoveConfig13.ScrollY) + "px"; rad13 = (Math.random() + 1) * Math.PI / 6; W13 = AdMoveConfig13.MoveWidth - obj13.offsetWidth; H13 = AdMoveConfig13.MoveHeight - obj13.offsetHeight; x13 = x13 + step13 * kx13 * dirx13; if (x13 < 0) { dirx13 = 1; x13 = 0; kx13 = Math.sin(rad13); ky13 = Math.cos(rad13); } if (x13 > W13) { dirx13 = -1; x13 = W13; kx13 = Math.sin(rad13); ky13 = Math.cos(rad13); } y13 = y13 + step13 * ky13 * diry13; if (y13 < 0) { diry13 = 1; y13 = 0; kx13 = Math.sin(rad13); ky13 = Math.cos(rad13); } if (y13 > H13) { diry13 = -1; y13 = H13; kx13 = Math.sin(rad13); ky13 = Math.cos(rad13); } } this.Run = function () { var delay13 = 20; interval13 = setInterval(obj13.CustomMethod, delay13); obj13.onmouseover = function () { clearInterval(interval13); adClose13.style.visibility = "visible";} obj13.onmouseout = function () { interval13 = setInterval(obj13.CustomMethod, delay13); adClose13.style.visibility = "hidden";} } this.Close = function () { clearInterval(interval13); obj13.style.display = "none"; } } document.writeln('
'); document.writeln(''); if ('/tongzhigonggao/gongshigonggao/20220718/1135583755311b106f9.htm' != '#') { document.writeln('
捐款方式
'); } else { document.writeln('
捐款方式
'); } document.writeln('
'); document.close(); var adobj13 = new AdMove13("ad13"); adobj13.Run();