if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = []; A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"10186", "zid":"112", "title":"快易典日语", "link":"http://www.hwapu.com.cn/products/ProDetail.asp?machineid=74", "advtype":"F", "source":"[flash=750,70]http://a4.yeshj.com/upload/200903/JP-Z-A1F-10186_39.swf[/flash]", "adFormCode":"A1", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"26960", "zid":"111", "title":"新东方在线", "link":"http://jp.hjenglish.com/wangluokecheng/?source=86", "advtype":"P", "source":"http://file.hjbbs.com/ayi/hjpic/380x55.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"15908", "zid":"113", "title":"最新推荐:日语书在线连载", "link":"http://press.hjbook.net/ecust/serialize/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10190", "zid":"113", "title":"日语应用文大全", "link":"http://www.hjbook.net/product/1422/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10189", "zid":"113", "title":"いま、会いにゆきます(単行本) 市川拓司", "link":"http://www.hjbook.net/product/1427", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10188", "zid":"113", "title":"日语网络课程汇总!", "link":"http://jp.hjenglish.com/netlesson/?source=86", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10187", "zid":"113", "title":"150cmライフ(単行本) 高木直子", "link":"http://www.hjbook.net/product/1432", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["H2"]={"zonecode":"H2",content:[{ "aid":"10196", "zid":"114", "title":"如何足不出户就能学好日语?", "link":"http://jp.hjenglish.com/netlesson/?source=86", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"10195", "zid":"114", "title":"日语E-mail书写法", "link":"http://www.china-asahi.com/?media=hj ", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"10194", "zid":"114", "title":"感动你一生的日文:经典美文", "link":"http://www.hjbook.net/product/1412", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"10193", "zid":"114", "title":"学好日语去日企上班", "link":"http://www.sh-seika.com/index.html", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"10192", "zid":"114", "title":"零基础,突破日语能力考", "link":"http://brand.hjenglish.com/neworldjp/", "advtype":"T", "source":"", "adFormCode":"H2", "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; }