📄 31.ftl
字号:
<#comment>
弹出广告
</#comment>
<#if adverties?? && adverties[currAdsNo]?? >
<#assign ads = adverties[currAdsNo] >
<script language="JavaScript">
<!--
var adsContent = "<html><head><meta http-equiv='content-type' content='text/html; charset=gb2312'><title>";
adsContent += "${ads.ads_title}</title><head>\n<Script language='Javascript'>\n blur();\n<\/Script>";
adsContent += "</head><body scroll=no style='margin:0;border:none'>";
<#if ads.adstype_id == "10">
<#comment>
单个文字广告展现
</#comment>
adsContent += "<#include 'text_type.ftl'/>";
<#elseif ads.adstype_id == "20">
<#comment>
单个图片广告展现
</#comment>
adsContent += "<#include 'pic_type.ftl'/>";
<#elseif ads.adstype_id == "30">
<#comment>
单个Flash广告展现
</#comment>
adsContent += "<#include 'flash_type.ftl'/>";
<#elseif ads.adstype_id == "40">
<#comment>
单个代码广告展现
</#comment>
adsContent += "<#include 'code_type.ftl'/>";
<#elseif ads.adstype_id == "50">
<#comment>
URL广告展现
</#comment>
adsContent += "<#include 'url_type.ftl'/>";
</#if>
adsContent += "</body></html>";
<#if position_location?number == 0>
<#assign locationValue = "yes"/>
<#else>
<#assign locationValue = "no"/>
</#if>
<#if position_menubar?number == 0>
<#assign menubarValue = "yes"/>
<#else>
<#assign menubarValue = "no"/>
</#if>
<#if position_resizable?number == 0>
<#assign resizableValue = "yes"/>
<#else>
<#assign resizableValue = "no"/>
</#if>
<#if position_scrollbars?number == 0>
<#assign scrollbarsValue = "yes"/>
<#else>
<#assign scrollbarsValue = "no"/>
</#if>
<#if position_status?number == 0>
<#assign statusValue = "yes"/>
<#else>
<#assign statusValue = "no"/>
</#if>
<#if position_titlebar?number == 0>
<#assign titlebarValue = "yes"/>
<#else>
<#assign titlebarValue = "no"/>
</#if>
<#if position_toolbar?number == 0>
<#assign toolbarValue = "yes"/>
<#else>
<#assign toolbarValue = "no"/>
</#if>
var openAdsWin = window.open("about:blank","_blank","top=${position_top},left=${position_left},height=${adsgroup_height},width=${adsgroup_width},location=${locationValue},menubar={menubarValue},resizable={resizableValue},scrollbars={scrollbarsValue},status={statusValue},titlebar={titlebarValue},toolbar={toolbarValue}");
openAdsWin.document.write(adsContent);
//-->
</script>
</#if>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -