document.writeln("<SCRIPT language=javascript type=text\/javascript>");
document.writeln("var hmax = 700-1;\/\/最大高度");
document.writeln("var hmin = 25;\/\/最小高度");
document.writeln("var h=0;");
document.writeln("function addCount(){");
document.writeln("if(h<hmax){");
document.writeln("   h += 20;");
document.writeln("   setTimeout(\"addCount()\",1); ");
document.writeln("}");
document.writeln("else {");
document.writeln("   h=hmax;");
document.writeln("   setTimeout(\"noneAds()\",6000); \/\/停留时间自己适当调整 1000 = 1秒");
document.writeln("   document.getElementById(\"adsOPEN\").style.display = \"none\";");
document.writeln("}");
document.writeln("document.getElementById(\"ads\").style.display = \"\";");
document.writeln("document.getElementById(\"ads\").style.height = h+\"px\";");
document.writeln("}");
document.writeln("window.onload = function showAds(){");
document.writeln("document.getElementById(\"ads\").style.display = \"none\";");
document.writeln("document.getElementById(\"ads\").style.height = \"0px\";");
document.writeln("");
document.writeln("addCount(); \/\/慢慢打开");
document.writeln("\/\/ h=hmax; ");
document.writeln("\/\/ setTimeout(\"noneAds()\",6000); \/\/停留时间自己适当调整 1000 = 1秒");
document.writeln("}");
document.writeln("function openAds(){");
document.writeln("h = 0;\/\/高度");
document.writeln("addCount(); \/\/慢慢打开");
document.writeln("}");
document.writeln("function noneAds(){");
document.writeln("if(h>hmin) {");
document.writeln("   h -= 20;");
document.writeln("   setTimeout(\"noneAds()\",1); ");
document.writeln("}");
document.writeln("else {");
document.writeln("   h = hmin;");
document.writeln("   document.getElementById(\"ads\").style.display = \"none\";");
document.writeln("   document.getElementById(\"adsOPEN\").style.display = \"\";");
document.writeln("   return;");
document.writeln("}");
document.writeln("document.getElementById(\"ads\").style.height = h+\"px\";");
document.writeln("}");
document.writeln("<\/SCRIPT>")