if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = []; A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"15020", "zid":"173", "title":"在上海看电影学英语", "link":"http://www.optimatch.com.cn/redirect.php?dest=http%3A%2F%2Fwww.webi.com.cn%2Fshanghai%2F20080430%2Fam-d1.asp", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"15019", "zid":"173", "title":"注册奖学金,CET资料大放送!", "link":"http://bulo.hjenglish.com/award", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"12014", "zid":"173", "title":"英语单词游戏,免费下载", "link":"http://www.wulongonline.com/home.htm?coming=1", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"10351", "zid":"173", "title":"30小时记忆3000单词的秘诀", "link":"http://www.matesay.com", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["H2"]={"zonecode":"H2",content:[{ "aid":"11614", "zid":"280", "title":"学习地道英语如此轻松有趣 ", "link":"http://bulo.hjenglish.com", "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; }