if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = []; A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"36243", "zid":"1010", "title":"元培", "link":"http://training.pkuyy.com/training/index.php?area=2", "advtype":"P", "source":"http://a4.yeshj.com/upload/201008/TR-Z-B1P-36243_62.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"18263", "zid":"504", "title":"中高口二阶段备考,我用什么书? ", "link":"http://tr.hjenglish.com/book/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18262", "zid":"504", "title":"如何快速提高口译,顺利通过CATTI考试", "link":"http://training.pkuyy.com/training/index.php?area=2", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18261", "zid":"504", "title":"攻克口译口试:通过电影提升英汉互译", "link":"http://ts.hjenglish.com/movie", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false }]};A4page.Zone["Z2"]={"zonecode":"Z2",content:[{ "aid":"36666", "zid":"505", "title":"超级家教助你宅家学英语!", "link":"http://www.besta.com.cn/wudi/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"36665", "zid":"505", "title":"教你如何一天收入5000!", "link":"http://www.cemachina.com", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"18270", "zid":"505", "title":"中英文笔记符号全面解析", "link":"http://www.kaosee.cn/zhuanti", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"18269", "zid":"505", "title":"紧缺人才:同声翻译 同声传译", "link":"http://www.cemachina.com", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"18268", "zid":"505", "title":"全封闭,浸泡式,纯英语", "link":"http://www.glvchina.com/chinese/main.php", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"18264", "zid":"505", "title":"会呼吸的眼镜更健康", "link":"http://www.keede.com/?utm_source=hujiang&utm_medium=5ky&utm_campaign=xubei", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false }]}; function show_a4_zone(zonecode) { if( typeof(A4page.Zone[zonecode]) == "undefined" ) return; if(A4page.Zone[zonecode].content[0].advtype == "T"){ for (var i=0, post; post = A4page.Zone[zonecode].content[i]; i++) { if(zonecode.substring(0,1) == "H") document.write("" + post.title +"  "); else document.write("" + post.title +"
"); } } else if (A4page.Zone[zonecode].content[0].advtype == "P"){ if( A4page.Zone[zonecode].content.length == 1 ){ document.write(""); }else{ for (var i=0, post; post = A4page.Zone[zonecode].content[i]; i++) { document.write("

"); } } }else if (A4page.Zone[zonecode].content[0].advtype == "F"){ document.write(ConvertUbb(A4page.Zone[zonecode].content[0].source)); } } function ConvertUbb(Source){ //定义ubb转换参数 var flash_ubb = /\[flash=(\d*),(\d*)\](\S*)\[\/flash\]/igm; var flash_html= "" + "" + "" + "" + ""; //执行转换 Source=Source.replace(flash_ubb, flash_html ); return Source; }