if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = []; A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"34363", "zid":"126", "title":"新世界日语", "link":"http://www.neworldedu.org/zhuanti/2010/yingxin/?Source=hj", "advtype":"P", "source":"http://a4.yeshj.com/upload/201001/JP-Z-B2P-34359_91.gif", "adFormCode":"A1", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"34418", "zid":"125", "title":"查分", "link":"http://jp.hjenglish.com/page/95819/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201002/JP-Z-B1P-34418_56.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"10226", "zid":"127", "title":"日本语能力考试1-4级语法句型解析", "link":"http://www.hjbook.net/product/902/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"10225", "zid":"127", "title":"2001-2006日语能力测试真题全解1级", "link":"http://www.hjbook.net/product/899/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"10224", "zid":"127", "title":"日语能力考试综合习题集3级对策篇", "link":"http://www.hjbook.net/product/899/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"10223", "zid":"127", "title":"《日本语能力测试300分突破系列-1级》", "link":"http://www.hjbook.net/product/353/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"10222", "zid":"127", "title":"日语能力考试1-2级试题集2005年", "link":"http://www.hjbook.net/product/381/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false }]};A4page.Zone["Z2"]={"zonecode":"Z2",content:[{ "aid":"11191", "zid":"265", "title":"沪江日语编辑推荐:考试必备用书", "link":"http://jp.hjenglish.com/book", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false }]};A4page.Zone["Z3"]={"zonecode":"Z3",content:[{ "aid":"29732", "zid":"686", "title":"沪江开通12月能力考报名通知免费短信提醒!", "link":"http://jp.hjenglish.com/page/75875", "advtype":"T", "source":"", "adFormCode":"Z3", "protected":false },{ "aid":"24606", "zid":"686", "title":"沪江日语12月日语能力考特训班", "link":"http://class.yeshj.com/course", "advtype":"T", "source":"", "adFormCode":"Z3", "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; }