[#if ad??]
[#if ad.category=="image"]
[#assign html]
[/#assign]
document.write("${html?js_string}");
[#elseif ad.category=="flash"]
[#assign html]
[/#assign]
document.write("${html?js_string}");
[#elseif ad.category=="text"]
[#assign html]
${(ad.attr.text_title)!}
[/#assign]
document.write("${html?js_string}");
[#elseif ad.category=="code"]
${ad.code!}
[#else]
document.write("未知的广告类型:${ad.category!}");
[/#if]
[#else]
document.write("广告不存在");
[/#if]