if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = []; A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"26939", "zid":"116", "title":"新东方在线", "link":"http://jp.hjenglish.com/netlesson/?source=147", "advtype":"P", "source":"http://file.hjfile.cn/ayi/hjpic/920x60.gif", "adFormCode":"A1", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"10902", "zid":"115", "title":"日语书籍专题", "link":"http://www.hjbook.net/cate/2202/?source=147", "advtype":"P", "source":"http://a4.yeshj.com/upload/200803/JP-Z-B1P-10902_49.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"15907", "zid":"117", "title":"参加J.TEST考试必备书籍", "link":"http://www.hjbook.net/product/7054/?source=147", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10204", "zid":"117", "title":"J.TEST2005-2008真题集(A-D) ", "link":"http://www.hjbook.net/product/5776/?source=147", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10203", "zid":"117", "title":"蜗居学日语,零基础直达N2级", "link":"http://jp.hjenglish.com/page/88639", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10201", "zid":"117", "title":"日语敬语正误用法500例", "link":"http://www.hjbook.net/product/1370/?source=147", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10200", "zid":"117", "title":"沪江推荐的J.TEST书籍", "link":"http://www.hjbook.net/cate/2202/?source=147", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10199", "zid":"117", "title":"日企员工日语读本 ", "link":"http://www.hjbook.net/product/1016/?source=147", "advtype":"T", "source":"", "adFormCode":"H1", "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; }