if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = []; A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"15035", "zid":"126", "title":"新世界", "link":"http://www.neworldjp.com/html/16549.htm", "advtype":"P", "source":"http://a4.yeshj.com/upload/200810/JP-Z-A1P-15035_38.gif", "adFormCode":"A1", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"10462", "zid":"125", "title":"日语书籍专题", "link":"http://jp.hjenglish.com/book", "advtype":"P", "source":"http://a4.yeshj.com/upload/200803/JP-D-B1P-10899_23.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 }]}; 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; }