if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = []; A4page.Zone["S1"]={"zonecode":"S1",content:[{ "aid":"30654", "zid":"342", "title":"50音图", "link":"http://class.yeshj.com/10016/intro?source=147", "advtype":"P", "source":"http://a4.yeshj.com/upload/200907/JP-Z-S1P-30654_61.gif", "adFormCode":"S1", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"28897", "zid":"343", "title":"零基础备战能力考N2的秘笈!", "link":"http://jp.hjenglish.com/page/96463/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"15514", "zid":"343", "title":"卡西欧电子词典(英汉日)手写最新款", "link":"http://zt.hjbook.net/zt/casio/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false }]};A4page.Zone["Z2"]={"zonecode":"Z2",content:[{ "aid":"33490", "zid":"914", "title":"让你的日语快速再快速地上路的法子!", "link":"http://brand.hjenglish.com/neworldjp/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"33489", "zid":"914", "title":"两周,轻松掌握日语五十音!", "link":"http://class.yeshj.com/10016/intro?source=147", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"33488", "zid":"914", "title":"走过路过不可错过,蛋蛋日语五十音", "link":"http://class.yeshj.com/10016/intro?source=147", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"33487", "zid":"914", "title":"五十音图班,助你最轻松实现日语入门", "link":"http://class.yeshj.com/10016/intro?source=147", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"33486", "zid":"914", "title":"用看动漫的热情,实现日语入门的方法", "link":"http://class.yeshj.com/10016/intro?source=147", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"33485", "zid":"914", "title":"每天10分钟,口语能力大幅提升!", "link":"http://bulo.hjenglish.com/app/home/source/hjjp", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"33484", "zid":"914", "title":"日语五十音图卡片 — 学假名说日语", "link":"http://www.hjbook.net/product/4566/?source=147", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"33483", "zid":"914", "title":"看《海贼王》,入日语门", "link":"http://jp.hjenglish.com/pp/Onepiece/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"33482", "zid":"914", "title":"日语零基础一年达N2级的方法", "link":"http://jp.hjenglish.com/page/96463/", "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; }