if(typeof(A4page) == 'undefined') A4page = {}; A4page.Zone = [];
A4page.Zone["H1"]={"zonecode":"H1",content:[{ "aid":"10372", "zid":"181", "title":"880资料英语学习资料高速下载>>", "link":"http://www.ef.com.cn/englishfirst/ilab/default.aspx?utm_source=HJENG&utm_medium=Banner&utm_campaign=Spring2008&etag=EFCN_Spring2008_CSHJENG", "advtype":"T", "source":"", "adFormCode":"H1", "protected":false }]};A4page.Zone["Z1"]={"zonecode":"Z1",content:[{ "aid":"15638", "zid":"180", "title":"口语能力快递提高谜秘诀", "link":"http://www.tjhongren.com", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"15162", "zid":"180", "title":"你能翻译吗?考验你的水平", "link":"http://www.mytino.com/china/job_pop/index_writing.php?adsn=2008011602", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"14969", "zid":"180", "title":"听力口语天天练", "link":"http://www.st-johns.com.cn/index.php/home", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"14928", "zid":"180", "title":"英语口语资料免费下载?", "link":"http://www.englishvip.com/hjenglish.htm", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"11979", "zid":"180", "title":"火星商务口语专家", "link":"p://www.marsenglish.com/ad/mars080701/mars_hj.html", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"11917", "zid":"180", "title":"你每天能记多少个单词", "link":"http://www.endi.com.cn/tg/tg.asp", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"11470", "zid":"180", "title":"好消息:沪江网和VOA官方合作达成", "link":"http://www.hjbbs.com/thread-8-478538.htm", "advtype":"T", "source":"", "adFormCode":"Z1", "protected":false },{ "aid":"11460", "zid":"180", "title":"走遍美国(Family Album,U.S.A.)7DVD", "link":"http://www.hjbook.net/product/372", "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;
}