定型管 電子鈑金
返回列表 回復 發帖

帖子標題:[求助] 請問lativ模板要如何增加像Genuine模板的廣告位?

請問各位大大:
Genuine模板首頁的熱銷、促銷、最新、精選都有一個廣告位,
請問如何在lativ模板增加這樣的廣告位?

我試過將Genuine的index.dwt中的
  <div class="w574 fl">
          <!--{if $promotion_goods} promotion start-->
                <div class="mod1 mod2 promotion">
                        <span class="lt"></span><span class="lb"></span><span

class="rt"></span><span class="rb"></span>
                        <h1 class="mod2tit">
                        {$lang.promotion_goods}         
                        <div class="more clearfix">
                         <div class="arrLeft" id="scrollArrLeft"></div><div

class="dotList" id="scrollDotList"></div><div class="arrRight" id="scrollArrRight"></div>
                         <div id="more"><a href="../search.php?intro=promotion">更多

</a></div>
                        </div>
                        </h1>
                        <div class="clearfix">
                          <div class="promotionAd">
                          <!-- TemplateBeginEditable name="特價商品廣告位126x182" -->
                           <a href=""><img src="images/ad2.gif" width="126" height="182"

/></a>
        <!-- TemplateEndEditable -->
                                </div>
                                <div class="promotionGood" id="scrollCont"

style="overflow:hidden;">
                                 <ul>
                                 <!--{foreach from=$promotion_goods item=goods

name="promotion_foreach"}-->
                                        <li>
                                        <a href="{$goods.url}"><img src="{$goods.thumb}"  

alt="{$goods.name|escape:html}"/></a><br />
                <a href="{$goods.url}" title="{$goods.name|escape:html}">

{$goods.short_name|truncate:7}</a><br />
                                        <strong class="price">{$goods.promote_price}

</strong>
                                        </li>
                                        <!--{/foreach}-->
                                 </ul>
                                </div>
                        </div>
                </div>
                <script  type="text/javascript">
                  var itemLi = $("scrollCont").getElementsByTagName("li").length;
                        if(itemLi>4){
                        $("more").style.display  = "none";
                        var scrollPic = new ScrollPic();
                        scrollPic.scrollContId   = "scrollCont";
                        scrollPic.arrLeftId      = "scrollArrLeft";
      scrollPic.arrRightId     = "scrollArrRight";
                        scrollPic.dotListId      = "scrollDotList";
                        scrollPic.dotClassName   = "dotItem";
                        scrollPic.dotOnClassName   = "dotItemOn";
                        scrollPic.frameWidth     = 428;
                        scrollPic.pageWidth      = 428;
                        scrollPic.speed          = 10;
                        scrollPic.space          = 10;
                        scrollPic.autoPlay       = false;
                        scrollPic.autoPlayTime   = 5;
                        scrollPic.initialize();
                        }else{
                        $("more").style.display  = "block";
                        $("scrollArrLeft").style.display  = "none";
                        $("scrollArrRight").style.display  = "none";
                        }
                </script>
                <!--{/if} promotion end-->
         </div>
插入lativ,原本可以正常顯示,
但是只要一在設置模板中的廣告位更換廣告,就會出現錯誤,首頁完全無法顯示。

麻煩高手協助解惑,TKS!
提醒您: 您在"ECSHOP 交流討論區"交流請遵守台灣法律規範,"fallenlin" 發表的文章《請問lativ模板要如何增加像Genuine模板的廣告位?》版權歸屬作者所有,如是轉貼版權歸屬原作者所有.本論壇不對其真實性做任何考證.
返回列表