<address id="r9vd9"><address id="r9vd9"><listing id="r9vd9"></listing></address></address>

      歡迎您光臨深圳塔燈網絡科技有限公司!
      電話圖標 余先生:13699882642

      JEECMS V8.1標簽使用之[@cms_advertising]

      發表日期:2018-06 文章編輯:小燈 瀏覽次數:2896

      模型標簽:[@cms_advertising id=’1]

      參數詳解:

      id:廣告id,必選

      廣告對象屬性

      percent 轉化率=點擊數/展現數

      name:名稱

      category:類型 image、flash、text、code 分別是圖片、flash、文本、代碼類型

      code:廣告代碼,在category為code類型時候 該項有值

      weight:權重

      displayCount:展現次數

      clickCount:點擊次數

      startTime:開始時間

      endTime:結束時間

      enabled:是否禁用

      具體例子:

      [@cms_advertising id='1']

      [#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]

      簡單的調用方式

      ${base}/ad.jspx?id=1 調用具體某個廣告

      還可以按照廣告版位來調用廣告,這樣可以實現按照區位來展現多個廣告輪換展示

      ${base}/adspace.jspx?id=1 調用廣告版位id為1的廣告,若該區位有多個廣告,將按照廣告的權重來展示,若A廣告權重2 B廣告權重1 那么A廣告出現次數大約是B的2倍

      例如:

      <script src="${base}/ad.jspx?id=1"></script>


      本頁內容由塔燈網絡科技有限公司通過網絡收集編輯所得,所有資料僅供用戶參考了本站不擁有所有權,如您認為本網頁中由涉嫌抄襲的內容,請及時與我們聯系,并提供相關證據,工作人員會在5工作日內聯系您,一經查實,本站立刻刪除侵權內容。本文鏈接:http://www.webpost.com.cn/5061.html
      相關cms文章
       八年  行業經驗

      多一份參考,總有益處

      聯系深圳網站公司塔燈網絡,免費獲得網站建設方案及報價

      咨詢相關問題或預約面談,可以通過以下方式與我們聯系

      業務熱線:余經理:13699882642

      Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.    

      国产成人精品综合在线观看