if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = []; A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"41071", "zid":"751", "title":"惊:围观日本升学率100%的学校", "link":"http://hajl.athuman.com/cn/lp/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"38626", "zid":"751", "title":"限时抢购,智能搜索六国语言", "link":"http://www.iq168.com/topic/x5.html", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"26350", "zid":"751", "title":"日语零基础菜鸟,入门必看>>", "link":"http://jp.yeshj.com/new/p122741/", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false }]};A4page.Zone["Z2"]={"zonecode":"Z2",content:[{ "aid":"28950", "zid":"824", "title":"30天突破能力考听力和语法", "link":"http://jp.yeshj.com/new/p158574/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false },{ "aid":"28949", "zid":"824", "title":"在日企工作一定要懂的日语", "link":"http://class.yeshj.com/qipei/", "advtype":"T", "source":"", "adFormCode":"Z2", "protected":false }]};A4page.Zone["Z3"]={"zonecode":"Z3",content:[{ "aid":"38980", "zid":"825", "title":"菜鸟轻松开口说日语>>", "link":"http://jp.yeshj.com/new/p138504/", "advtype":"T", "source":"", "adFormCode":"Z3", "protected":false },{ "aid":"28951", "zid":"825", "title":"英语26个字母的日语读法!", "link":"http://www.yanyuanriyu.com", "advtype":"T", "source":"", "adFormCode":"Z3", "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)); document.write(ConvertUbb2(A4page.Zone[zonecode].content[0].source,A4page.Zone[zonecode].content[0].aid)); } } 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; } function ConvertUbb2(Source,aid){ //定义ubb转换参数 var flash_ubb = /\[flash=(\d*),(\d*)\](\S*)\[\/flash\]/igm; var flash_html= "
" + "" + "" + "" + "" + "" + "" + "" + "
"; //执行转换 Source=Source.replace(flash_ubb, flash_html ); return Source; }