• <ruby id="nt4yu"></ruby>

    <em id="nt4yu"></em>

    <progress id="nt4yu"><track id="nt4yu"><video id="nt4yu"></video></track></progress>
  • <em id="nt4yu"></em>
    <th id="nt4yu"><pre id="nt4yu"></pre></th><button id="nt4yu"><acronym id="nt4yu"></acronym></button>
    <progress id="nt4yu"><pre id="nt4yu"></pre></progress>
  • <dd id="nt4yu"></dd>
    "); } function AdFloat(obj, width, height, top, side, autoClose) { var directX = 1; var directY = 1; obj.Move = function() { if (side + width >= AdConfig.Left + AdConfig.Width) { side = AdConfig.Left + AdConfig.Width - width; directX = -1; } else if (side <= AdConfig.Left) { side = AdConfig.Left; directX = 1; } if (top + height >= AdConfig.Top + AdConfig.Height) { top = AdConfig.Top + AdConfig.Height - height; directY = -1; } else if (top <= AdConfig.Top) { top = AdConfig.Top; directY = 1; } side += directX; top += directY; obj.style.left = side + "px"; obj.style.top = top + "px"; } var interval = window.setInterval(obj.Move, timespan); obj.onmouseover = function() { window.clearInterval(interval); } obj.onmouseout = function() { interval = window.setInterval(obj.Move, timespan); } if (autoClose) { obj.onclick = function() { window.clearInterval(interval); obj.style.display = "none"; } } } function AdHangLeft(obj, top, autoClose) { obj.Move = function() { var t = parseInt(obj.style.top, 10); if (t + 5 < AdConfig.Top + top) { obj.style.top = (t + 5) + "px"; } else if (t - 5 > AdConfig.Top + top) { obj.style.top = (t - 5) + "px"; } } var interval = window.setInterval(obj.Move, timespan); if (autoClose) { obj.onclick = function() { window.clearInterval(interval); obj.style.display = "none"; } } } function AdHangRight(obj, top, autoClose) { obj.Move = function() { var t = parseInt(obj.style.top, 10); if (t + 5 < AdConfig.Top + top) { obj.style.top = (t + 5) + "px"; } else if (t - 5 > AdConfig.Top + top) { obj.style.top = (t - 5) + "px"; } } var interval = window.setInterval(obj.Move, timespan); if (autoClose) { obj.onclick = function() { window.clearInterval(interval); obj.style.display = "none"; } } } function AdPrepare(id, title, url, mode, pic, width, height, top, side, autoClose) { if (!AdConfig) AdConfigInit(); var content = AdContent(url, pic, width, height); if (mode == "popup") { AdPopup(id, title, content, width, height, top, side, autoClose); return; } document.writeln("" + content + ""); var obj = document.getElementById("adver_" + id); switch(mode) { case "float": AdFloat(obj, width, height, top, side, autoClose); break; case "hangL": AdHangLeft(obj, top, autoClose); break; case "hangR": AdHangRight(obj, top, autoClose); break; } } function AdContent(url, pic, width, height) { var picType = pic.substr(pic.lastIndexOf(".") + 1).toLowerCase(); var content; if (picType == "swf") { content = ""; if (url != "") content = "" + content; else content = "" + content; } else { content = ""; if (url != "") content = "" + content + ""; } return content; }
    當前位置:首頁 >> 新聞中心 >> 熱點推薦