if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = []; A4page.Zone["B1"]={"zonecode":"B1",content:[{ "aid":"14887", "zid":"175", "title":"乌龙", "link":"http://www.wulongonline.com/home.htm?coming=36", "advtype":"P", "source":"http://a4.yeshj.com/upload/200806/EN-B-B1P-14887_70.gif", "adFormCode":"B1", "protected":false }]};A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"15924", "zid":"176", "title":"兼职英语翻译大召集", "link":"http://wanmoafa7.allyes.com/main/adfclick?db=wanmoafa7&bid=1818,886,60&cid=828,105,1&sid=1927&show=ignore&url=http://www.51go.com/gogo/track/get_trackpage.jsp?adid=317&webid=829&proid=202&banid=3985&lead=", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"15727", "zid":"176", "title":"年薪30万的秘密!", "link":"http://www.oristand.com/CM_dissertation/soft/guoruan.htm", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"15648", "zid":"176", "title":"英语资料免费下载", "link":"http://www.tjhongren.com/ysks.asp?id=44", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false },{ "aid":"14919", "zid":"176", "title":"每日一句,口语学习", "link":"http://www.freeonlineenglish.com/Register.aspx", "advtype":"T", "source":"", "adFormCode":"H1", "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; }