if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = []; A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"14960", "zid":"293", "title":"社交必备英语-免费课程每日发送", "link":"http://www.chanet.com.cn/click.cgi?a=96016&d=37537&u=&e=&url=http://www.cn.englishtown.com/sp/tests/start.aspx?etag=A02012031FF", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"11383", "zid":"293", "title":" 精选新概念必背优秀文章36篇", "link":"http://www.hjenglish.com/down/10799/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"11382", "zid":"293", "title":" 雅思作文必须注意的英汉表述十大区别", "link":"http://www.hjenglish.com/down/11134/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"11381", "zid":"293", "title":"沪江原创资料打包下载:烤鸭写作胜策", "link":"http://www.hjenglish.com/down/11294/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"15676", "zid":"346", "title":"马上订阅为英专学生订制的职场英语课程(免费)", "link":"http://www.chanet.com.cn/click.cgi?a=96016&d=37537&u=&e=&url=http://www.cn.englishtown.com/sp/tests/start.aspx?etag=A02012031FF", "advtype":"T", "source":"", "adFormCode":"Z1", "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; }