if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = []; A4page.Zone["A1"]={"zonecode":"A1",content:[{ "aid":"10285", "zid":"147", "title":"沪江英乐群组", "link":"http://www.hjbbs.com/forum-43.htm", "advtype":"P", "source":"http://a4.yeshj.com/upload/200802/TS-Z-A1P-10285_90.gif", "adFormCode":"A1", "protected":false }]};A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"10284", "zid":"146", "title":"好听在沪江", "link":"http://bulo.hjenglish.com/group/music8/", "advtype":"P", "source":"http://a4.yeshj.com/upload/200802/TS-Z-B1P-10284_43.jpg", "adFormCode":"B1", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"12916", "zid":"148", "title":"暑期外语应该怎么学?", "link":"http://brand.hjenglish.com/57/course", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10288", "zid":"148", "title":"不是达人也能享受音乐", "link":"http://bulo.hjenglish.com/group/100705/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10287", "zid":"148", "title":"沪江英乐电台火热订阅收听中", "link":"http://bulo.hjenglish.com/podcast/channel/228/", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10286", "zid":"148", "title":"求助: 如何通过听歌曲提高听力?", "link":"http://www.hjbbs.com/thread-43-465519.htm", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["H2"]={"zonecode":"H2",content:[{ "aid":"15159", "zid":"149", "title":"学好口语,暑期和外教一起封闭", "link":"http://brand.hjenglish.com/57/course", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"10291", "zid":"149", "title":"【推荐】卡西欧词典新品上市", "link":"http://www.casio.com.cn/dic/", "advtype":"T", "source":"", "adFormCode":"H2", "protected":false },{ "aid":"10290", "zid":"149", "title":"加入沪江英乐电台小组,签到送红包!", "link":"http://bulo.hjenglish.com/group/topic/45489/", "advtype":"T", "source":"", "adFormCode":"H2", "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; }