if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = []; A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"16483", "zid":"386", "title":"考研真题下载", "link":"http://kaoyan.hjenglish.com/papers.htm", "advtype":"P", "source":"http://a4.yeshj.com/upload/200809/KY-D-A1P-16483_65.jpg", "adFormCode":"A1", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"16484", "zid":"387", "title":"考研书籍推荐", "link":"http://kaoyan.hjenglish.com/book/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200809/KY-D-B1P-16484_74.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"17965", "zid":"424", "title":"30天轻松突破英语听说", "link":"http://a8.yeshj.com/zt/webi2/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["S1"]={"zonecode":"S1",content:[{ "aid":"17555", "zid":"388", "title":"考研报名指南", "link":"http://kaoyan.hjenglish.com/zt/09baoming/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200810/KY-D-S1P-17555_40.gif", "adFormCode":"S1", "protected":false }]};A4page.Zone["S2"]={"zonecode":"S2",content:[{ "aid":"16486", "zid":"389", "title":"super答题", "link":"http://super2.yeshj.com/exam/yanying", "advtype":"P", "source":"http://a4.yeshj.com/upload/200809/KY-D-S2P-16486_22.jpg", "adFormCode":"S2", "protected":false }]}; function show_a4_zone(zonecode) { 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; }