主题 : 关于jeecms8.1的广告栏 |
级别: 举人
![]() |
1# 发表于:2017-09-18 10:58:49 IP:118.174.*.*
|
||||
---|---|---|---|---|---|
级别: 举人
![]() |
5# 发表于:2017-09-18 14:18:57 IP:118.174.*.*
回复第4楼
放的是图片类型的广告,写多了整个页面就占完了。 <script type="text/javascript" src="${base}/adspace.jspx?id=广告栏位ID"></script>只有这一种获取广告内容的方法吗? |
||
---|---|---|---|
级别: 举人
![]() |
7# 发表于:2017-09-18 14:28:25 IP:118.174.*.*
回复第6楼
广告不是有一个权重吗,不知道可不可以通过ajax定时的去向后台请求然后返回获取到的广告内容。然后将获取到的内容加载到一个div中。 |
||
---|---|---|---|
级别: 版主
![]() |
10# 发表于:2017-09-18 16:36:50 IP:106.166.*.*
[@cms_advertising id='广告id']
[#if tag_bean??] [#if tag_bean.category=="image"] [#assign html] <a href="${( tag_bean.attr.image_link)!}" target="${ tag_bean.attr.image_target!}" title="${(tag_bean.attr.image_title)!}"> <img src="${tag_bean.attr.image_url}" border="0"[#if (tag_bean.attr.image_width)??] width="${tag_bean.attr.image_width}"[/#if][#if (tag_bean.attr.image_height)??] height="${tag_bean.attr.image_height}"[/#if]/> </a> [/#assign] ${html!} [#elseif tag_bean.category=="flash"] [#assign html] <embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" menu="true" src="${(tag_bean.attr.flash_url)!}"[#if tag_bean.attr.flash_width?? && tag_bean.attr.flash_width!=""] width="${tag_bean.attr.flash_width}"[/#if][#if tag_bean.attr.flash_height?? && tag_bean.attr.flash_height!=""] height="${tag_bean.attr.flash_height}"[/#if]></embed> [/#assign] ${html!} [#elseif tag_bean.category=="text"] [#assign html] <a href="${(tag_bean.attr.text_link)!}" target="${(tag_bean.attr.text_target)!}"> <span style="[#if (tag_bean.attr.text_color)??]color:${tag_bean.attr.text_color};[/#if][#if (tag_bean.attr.text_font)??]font-size:${tag_bean.attr.text_font};[/#if]">${(tag_bean.attr.text_title)!}</span> </a> [/#assign] ${html!} [#elseif tag_bean.category=="code"] ${tag_bean.code!} [#else] 未知的广告类型:${tag_bean.category!} [/#if] [#else] 广告不存在" [/#if] [/@cms_advertising] |
||
---|---|---|---|