if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = []; A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"41821", "zid":"801", "title":"修曼日本语", "link":"http://hajl.athuman.com/cn/lp/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201112/pr13114503681.gif", "adFormCode":"A1", "protected":false }]};A4page.Zone["A2"]={"zonecode":"A2",content:[{ "aid":"28408", "zid":"807", "title":"快易典电子词典", "link":"http://www.hwapu22.com/products/proview.asp?machineid=74", "advtype":"F", "source":"[flash=750,70]http://a4.yeshj.com/upload/200905/JP-Z-A2F-28408_96.swf[/flash]", "adFormCode":"A2", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"28395", "zid":"804", "title":"0-N1", "link":"http://jp.hujiang.com/new/p158237/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201201/pr11095019847.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["B2"]={"zonecode":"B2",content:[{ "aid":"40964", "zid":"806", "title":"从零开口说日语", "link":"http://jp.yeshj.com/new/p188023/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201109/pr23164333578.gif", "adFormCode":"B2", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"38954", "zid":"802", "title":"能力考:短期or长期备战?", "link":"http://jp.yeshj.com/new/p200551/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"28387", "zid":"802", "title":"从零开始学日语,入门必看!", "link":"http://jp.yeshj.com/new/p122741/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"28386", "zid":"802", "title":"坚持梦想-我的赴日留学路", "link":"http://www.kansaigogen.com/index.aspx", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"28384", "zid":"802", "title":"在日企工作一定要懂的日语", "link":"http://class.yeshj.com/qipei/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"28382", "zid":"802", "title":"培养日语交流会话能力!", "link":"http://jp.yeshj.com/new/p160579/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"28381", "zid":"802", "title":"最真实的日本留学生活", "link":"http://blog.sina.com.cn/u/1606673703", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"41953", "zid":"803", "title":"掌握100句地道日语口语", "link":"http://jp.hujiang.com/new/p188023/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"38955", "zid":"803", "title":"日语零基础直达N1的方法", "link":"http://jp.yeshj.com/new/p158237/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"28391", "zid":"803", "title":"《日本桥》杂志在线阅读", "link":"http://www.j-bridge.cn/jb/jb.html", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"28390", "zid":"803", "title":"卡西欧日语电子词典中心", "link":"http://www.hjbook.net/zt/casio/default.aspx?source=351", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false }]};A4page.Zone["Z2"]={"zonecode":"Z2",content:[{ "aid":"39541", "zid":"805", "title":"你的听力和语法过关了吗", "link":"http://jp.yeshj.com/new/p158574/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"38963", "zid":"805", "title":"让菜鸟轻松开口说日语>>", "link":"http://jp.yeshj.com/new/p138504/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"38962", "zid":"805", "title":"日语零基础直达N2的方法", "link":"http://jp.yeshj.com/new/p175799/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"28399", "zid":"805", "title":"在日企工作一定要懂的日语!", "link":"http://class.yeshj.com/qipei/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"28396", "zid":"805", "title":"【保过】日语能力考在线课程", "link":"http://jp.yeshj.com/netlesson/?source=351", "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)); document.write(ConvertUbb2(A4page.Zone[zonecode].content[0].source,A4page.Zone[zonecode].content[0].aid)); } } 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; } function ConvertUbb2(Source,aid){ //定义ubb转换参数 var flash_ubb = /\[flash=(\d*),(\d*)\](\S*)\[\/flash\]/igm; var flash_html= "
" + "" + "" + "" + "" + "" + "" + "" + "
"; //执行转换 Source=Source.replace(flash_ubb, flash_html ); return Source; }