if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = []; A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"52666", "zid":"107", "title":"N2软文950x90", "link":"http://jp.hjenglish.com/new/p474162/?source=688", "advtype":"P", "source":"http://a4.yeshj.com/upload/201310/pr24100445401.jpg", "adFormCode":"A1", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"52522", "zid":"99", "title":"0-N1软文520x55", "link":"http://jp.hjenglish.com/new/p422170/?source=688", "advtype":"P", "source":"http://a4.yeshj.com/upload/201310/pr14115622915.jpg", "adFormCode":"B1", "protected":false }]};A4page.Zone["B3"]={"zonecode":"B3",content:[{ "aid":"52529", "zid":"366", "title":"0-N1软文922x80", "link":"http://jp.hjenglish.com/new/p422170/?source=688", "advtype":"P", "source":"http://a4.yeshj.com/upload/201310/pr14133802306.jpg", "adFormCode":"B3", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"51357", "zid":"108", "title":"哇,学日语这么划算?", "link":"http://tuan.hujiang.com/tuangou/zt/jp/?source=644", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"45374", "zid":"108", "title":"我不信这样你还过不了能力考!", "link":"http://jp.hujiang.com/new/p433647/?source=688", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"41747", "zid":"108", "title":"什么助你迅速飙升竞争力?", "link":"http://www.aaash.org/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"18857", "zid":"108", "title":"91-09年日语能力考真题汇总", "link":"http://jp.yeshj.com/papers.aspx", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"17767", "zid":"108", "title":"坚持梦想-我的赴日留学路", "link":"http://blog.sina.com.cn/u/1606673703", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["H2"]={"zonecode":"H2",content:[{ "aid":"51650", "zid":"413", "title":"国内第一畅销日语杂志", "link":"http://tuan.hujiang.com/tuangou/p1000/?source=644", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"51649", "zid":"413", "title":"高命中率JLPT备考书", "link":"http://tuan.hujiang.com/tuangou/p1067/?source=644", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"48106", "zid":"413", "title":"日语0-N1就是这么简单", "link":"http://jp.hjenglish.com/new/p422170/?source=688", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"17766", "zid":"413", "title":"免费查阅历年能力考真题", "link":"http://jp.yeshj.com/papers.aspx", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false }]};A4page.Zone["S1"]={"zonecode":"S1",content:[{ "aid":"15515", "zid":"344", "title":"卡西欧电子词典", "link":"http://www.hjbook.net/zt/casio/default.aspx", "advtype":"P", "source":"http://a4.yeshj.com/upload/201103/pr02150149247.jpg", "adFormCode":"S1", "protected":false }]};A4page.Zone["S2"]={"zonecode":"S2",content:[{ "aid":"41591", "zid":"941", "title":"JLPT", "link":"http://jp.hjenglish.com/new/p200551/", "advtype":"P", "source":"http://a4.yeshj.com/upload/201111/pr30153658511.jpg", "adFormCode":"S2", "protected":false }]};A4page.Zone["S3"]={"zonecode":"S3",content:[{ "aid":"52528", "zid":"973", "title":"0-N1软文300x280", "link":"http://jp.hjenglish.com/new/p527356/?source=688", "advtype":"P", "source":"http://a4.yeshj.com/upload/201310/pr14133550946.jpg", "adFormCode":"S3", "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; }