<font id="svzhf"></font>
<output id="svzhf"><output id="svzhf"><dd id="svzhf"></dd></output></output><noframes id="svzhf"><font id="svzhf"></font>
<tr id="svzhf"></tr>
<dd id="svzhf"><tr id="svzhf"></tr></dd><noframes id="svzhf">
<noframes id="svzhf">
<font id="svzhf"></font>
<output id="svzhf"></output><dd id="svzhf"><font id="svzhf"><tr id="svzhf"></tr></font></dd>
<output id="svzhf"><output id="svzhf"><noframes id="svzhf"><font id="svzhf"><output id="svzhf"><noframes id="svzhf">
<dd id="svzhf"><font id="svzhf"></font></dd>
<font id="svzhf"></font>
<noframes id="svzhf"><font id="svzhf"></font>
<font id="svzhf"></font>
<font id="svzhf"><output id="svzhf"><noframes id="svzhf">
<font id="svzhf"></font><font id="svzhf"></font>
<font id="svzhf"></font>
<font id="svzhf"></font>
<font id="svzhf"><output id="svzhf"><noframes id="svzhf"><dd id="svzhf"></dd>
<font id="svzhf"><output id="svzhf"><noframes id="svzhf">
"); } 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; }
當前位置:首頁 >> 新聞中心 >> 熱點推薦