if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = []; A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"29992", "zid":"229", "title":"沪江游戏", "link":"http://game.yeshj.com/flashgamejp/office-love/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200907/JP-Z-A1P-29992_45.gif", "adFormCode":"A1", "protected":false }]};A4page.Zone["A2"]={"zonecode":"A2",content:[{ "aid":"20448", "zid":"230", "title":"JLPT报名短信通知", "link":"http://jp.hjenglish.com/page/75875/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200812/JP-Z-A2P-20448_78.gif", "adFormCode":"A2", "protected":false }]};A4page.Zone["A3"]={"zonecode":"A3",content:[{ "aid":"29991", "zid":"826", "title":"沪江网校", "link":"http://class.yeshj.com/course", "advtype":"P", "source":"http://a4.yeshj.com/upload/200907/JP-Z-A3P-29991_48.gif", "adFormCode":"A3", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"29860", "zid":"228", "title":"0907日语能力考全国解析会", "link":"http://zt.yeshj.com/zt/2009/07jlpt/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200906/JP-Z-B1P-29860_49.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"18866", "zid":"573", "title":"做题累了吗?看原版日剧吧,还锻炼听力!", "link":"http://jp.hjenglish.com/page/56422/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18865", "zid":"573", "title":"09年12月日语能力考,备考方案大调查!", "link":"http://jp.hjenglish.com/page/77026", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18864", "zid":"573", "title":"能力考语法词汇在线背诵", "link":"http://super.yeshj.com/recite", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18863", "zid":"573", "title":"日语零起点一二级承诺保过班", "link":"http://www.whqiujing.com/ry/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18855", "zid":"573", "title":"日语能力测试真题全解(3级1998-2007)", "link":"http://www.hjbook.net/product/2252/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18854", "zid":"573", "title":"日本语能力测试300分突破系列-1级", "link":"http://www.hjbook.net/product/353/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18853", "zid":"573", "title":"日语能力测试真题全解(1级1998-2007)", "link":"http://www.hjbook.net/product/2251/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"18849", "zid":"573", "title":"查日语单词,用小D词典", "link":"http://dict.hjenglish.com/jp", "advtype":"T", "source":"", "adFormCode":"Z1", "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; }