if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = []; A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"10229", "zid":"130", "title":"新世界日语_日语内页", "link":"http://www.neworldedu.org/news/xueli/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200804/JP-D-A1P-10229_48.gif", "adFormCode":"A1", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"14986", "zid":"100", "title":"东方标准", "link":"http://www.oristand.com/CMS_Course/class_furi_list.shtml", "advtype":"P", "source":"http://a4.yeshj.com/upload/200806/JP-D-B1P-14986_10.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"11189", "zid":"131", "title":"2008年全年日语考试时间汇总", "link":"http://jp.hjenglish.com/page/34321/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["H2"]={"zonecode":"H2",content:[{ "aid":"15017", "zid":"135", "title":"年薪30万日本就业你也行", "link":"http://www.oristand.com/CMS_Course/class_furi_list.shtml", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false }]};A4page.Zone["S1"]={"zonecode":"S1",content:[{ "aid":"13486", "zid":"132", "title":"沪江网店", "link":"http://www.hjbook.net/tag/J.TEST真题套餐/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200805/JP-D-S1P-13486_41.jpg", "adFormCode":"S1", "protected":false }]};A4page.Zone["S2"]={"zonecode":"S2",content:[{ "aid":"13487", "zid":"133", "title":"日语能力考书", "link":"http://www.hjbook.net/tag/解题分析与实战演练/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200805/JP-D-S2P-13487_89.jpg", "adFormCode":"S2", "protected":false }]};A4page.Zone["S3"]={"zonecode":"S3",content:[{ "aid":"15516", "zid":"134", "title":"日语内页卡西欧", "link":"http://www.hjbook.net/zt/casio/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200807/JP-D-S3P-15516_45.jpg", "adFormCode":"S3", "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; }