﻿//var s = "http://www.xuexinet.com/index.asp";
//var s=window.location.href;
//s = s.toLowerCase();
//if(s.indexOf("xuexinet.com",0)>0)
//{
//    s = s.replace("xuexinet.com","5xyz.cn");
//	window.location=s;
//}


<!--以下网页对联广告代码-->
function initEcAd() {
document.all.AdLayer1.style.posTop = -200;
document.all.AdLayer1.style.visibility = 'visible'
document.all.AdLayer2.style.posTop = -200;
document.all.AdLayer2.style.visibility = 'visible'
MoveLeftLayer('AdLayer1');
MoveRightLayer('AdLayer2');
}
function MoveLeftLayer(layerName) {
var x = 3;
var y = 95 ;
var diff = (document.body.scrollTop + y - document.all.AdLayer1.style.posTop)*.40;
var y = document.body.scrollTop + y - diff;
eval("document.all." + layerName + ".style.posTop = y");
eval("document.all." + layerName + ".style.posLeft = x");
setTimeout("MoveLeftLayer('AdLayer1');", 20);
}
function MoveRightLayer(layerName) {
var x = 3;
var y = 95;
var diff = (document.body.scrollTop + y - document.all.AdLayer2.style.posTop)*.40;
var y = document.body.scrollTop + y - diff;
eval("document.all." + layerName + ".style.posTop = y");
eval("document.all." + layerName + ".style.posRight = x");
setTimeout("MoveRightLayer('AdLayer2');", 20);
}
document.write("<div id=AdLayer1 style='position: absolute;visibility:hidden;z-index:1'><iframe scrolling=no frameborder=0 src=http://www.5xyz.cn/ad/adfloatleft_bj.htm width=110 height=468></iframe></div>"
 +"<div id=AdLayer2 style='position: absolute;visibility:hidden;z-index:1'><iframe scrolling=no frameborder=0 src=http://www.5xyz.cn/ad/adfloatright_bj.htm width=110 height=468></iframe></div>");
initEcAd()
<!--以上网页对联广告代码-->
/*
document.writeln("<!21cn点歌>");
document.writeln(" <!--ad -->");
document.writeln("  <div id=eMeng  style=\"BORDER-RIGHT: #455690 1px solid; BORDER-TOP: #a6b4cf 1px solid; Z-INDEX: 99999; LEFT: 65px; VISIBILITY: hidden; BORDER-LEFT: #a6b4cf 1px solid; WIDTH: 190px; BORDER-BOTTOM: #455690 1px solid; POSITION: absolute; TOP: 622px; HEIGHT: 80px\"> ");
document.writeln("    <table id=table14  style=\"BORDER-TOP: #ffffff 1px solid; BORDER-LEFT: #ffffff 1px solid\" cellspacing=0 cellpadding=0 width=\"100%\" border=0 bgcolor=\"#cfdef4\" height=\"80\">");
document.writeln("      <tr> ");
document.writeln("        <td style=\"PADDING-LEFT: 4px; FONT-WEIGHT: normal; FONT-SIZE: 12px; BACKGROUND-IMAGE: url(\'..\/images\/bgcolor.gif\'); COLOR: #1f336b; PADDING-TOP: 4px\" valign=center width=\"88%\" height=\"20\">&nbsp;<font color=\"#0000FF\"><b><font color=\"#132235\">吾学网公告<\/font><\/b><\/font><\/td>");
document.writeln("        <td style=\"PADDING-RIGHT: 2px; BACKGROUND-IMAGE: url(\'pic\/bgcolor.gif\'); PADDING-TOP: 2px\" valign=center align=right width=19> ");
document.writeln("          <div align=\"center\"> <span title=关闭 style=\"FONT-WEIGHT: bold; FONT-SIZE: 12px; CURSOR: hand; COLOR: red; MARGIN-RIGHT: 4px\" onClick=\"javascript:closeDiv();\"><font color=\"#003399\"><IMG SRC=\"..\/images\/guanbi.gif\" WIDTH=\"13\" HEIGHT=\"13\" BORDER=\"0\"><\/font><\/span><\/div>");
document.writeln("        <\/td>");
document.writeln("      <\/tr>");
document.writeln("      <tr valign=\"top\"> ");
document.writeln("        <td style=\"20padding-right: %201px; 20padding-bottom: %201px\'); background-image: url(\'\')\" colspan=2> ");
document.writeln("          <div style=\"BORDER-RIGHT: #b9c9ef 1px solid; PADDING-RIGHT: 13px; BORDER-TOP: #728eb8 1px solid; PADDING-LEFT: 13px; FONT-SIZE: 12px; PADDING-BOTTOM: 13px; BORDER-LEFT: #728eb8 1px solid; WIDTH: 100%; COLOR: #1f336b; PADDING-TOP: 18px; BORDER-BOTTOM: #b9c9ef 1px solid; HEIGHT: 100%\"> ");
document.writeln("            本站资源保证能下载<br>欢迎大家发信给站长提供更多资源：）<br>邮箱：5xyz.cn@163.com<br><p align=\"left\"> <a href=\"http:\/\/www.5xyz.cn\/firefox\/firefox.htm\" target=\"_blank\">上网故障及应对，一点就会<\/a>");
document.writeln("<br>");
document.writeln("<script language=JavaScript>      ");
document.writeln("window.onload = getMsg; ");
document.writeln("window.onresize = resizeDiv; ");
document.writeln("window.onerror = function(){} ");
document.writeln("var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,i = 0; ");
document.writeln("function getMsg() ");
document.writeln("{ ");
document.writeln("try{ ");
document.writeln("divTop = parseInt(document.getElementById(\"eMeng\").style.top,10) ");
document.writeln("divLeft = parseInt(document.getElementById(\"eMeng\").style.left,10) ");
document.writeln("divHeight = parseInt(document.getElementById(\"eMeng\").offsetHeight,10) ");
document.writeln("divWidth = parseInt(document.getElementById(\"eMeng\").offsetWidth,10) ");
document.writeln("docWidth = document.body.clientWidth; ");
document.writeln("docHeight = document.body.clientHeight; ");
document.writeln("document.getElementById(\"eMeng\").style.top = parseInt(document.body.scrollTop,10) + docHeight + 10;\/\/ divHeight ");
document.writeln("document.getElementById(\"eMeng\").style.left = parseInt(document.body.scrollLeft,10) + docWidth - divWidth ");
document.writeln("document.getElementById(\"eMeng\").style.visibility=\"visible\" ");
document.writeln("objTimer = window.setInterval(\"moveDiv()\",10) ");
document.writeln("} ");
document.writeln("catch(e){} ");
document.writeln("} ");
document.writeln("");
document.writeln("function resizeDiv() ");
document.writeln("{ ");
document.writeln("try{ ");
document.writeln("divHeight = parseInt(document.getElementById(\"eMeng\").offsetHeight,10) ");
document.writeln("divWidth = parseInt(document.getElementById(\"eMeng\").offsetWidth,10) ");
document.writeln("docWidth = document.body.clientWidth; ");
document.writeln("docHeight = document.body.clientHeight; ");
document.writeln("document.getElementById(\"eMeng\").style.top = docHeight - divHeight + parseInt(document.body.scrollTop,10) ");
document.writeln("document.getElementById(\"eMeng\").style.left = docWidth - divWidth + parseInt(document.body.scrollLeft,10) ");
document.writeln("} ");
document.writeln("catch(e){} ");
document.writeln("} ");
document.writeln("");
document.writeln("function moveDiv() ");
document.writeln("{ ");
document.writeln("try ");
document.writeln("{ ");
document.writeln("if(parseInt(document.getElementById(\"eMeng\").style.top,10) <= (docHeight - divHeight + parseInt(document.body.scrollTop,10))) ");
document.writeln("{ ");
document.writeln("window.clearInterval(objTimer) ");
document.writeln("objTimer = window.setInterval(\"resizeDiv()\",1) ");
document.writeln("} ");
document.writeln("divTop = parseInt(document.getElementById(\"eMeng\").style.top,10) ");
document.writeln("document.getElementById(\"eMeng\").style.top = divTop - 1 ");
document.writeln("} ");
document.writeln("catch(e){} ");
document.writeln("} ");
document.writeln("function closeDiv() ");
document.writeln("{ ");
document.writeln("document.getElementById(\'eMeng\').style.visibility=\'hidden\'; ");
document.writeln("if(objTimer) window.clearInterval(objTimer) ");
document.writeln("} ");
document.writeln("<\/script>");
document.writeln("              <!-- Code End -->     ");
document.writeln("          <\/div>");
document.writeln("    <\/table>");
document.writeln("  <\/div>");
document.writeln("  <!--ad -->");
document.writeln("<!21cn点歌结束>");
*/
