bet9会员登录入口

ecshop二次开发

ecshop二次开发

bet9会员登录入口 资讯中心 ecshop二次开发 ecshop简单三步实现导航商品分类二级菜单

ecshop简单三步实现导航商品分类二级菜单

时间:2020-12-16
1.在page_header.lbi对应的位置(你想显示导航的位置)插入(注意下面的themes/模板名称/util.php中的模板名称改成你模板文件夹的名称)?phprequire_once(themes/模板名称/util.php);?divclass=h1.在page_header.lbi对..
1.在page_header.lbi对应的位置(你想显示导航的位置)插入 (注意下面的 themes/模板名称/util.php中的模板名称改成你模板 文件 夹的名称) ? php require_once(themes/模板名称/util.php); ? div class = h
 1.在page_header.lbi对应的位置(你想显示导航的位置)插入

  (注意下面的"themes/模板名称/util.php"中的"模板名称"改成你模板文件夹的名称)
 
<?php 
    require_once("themes/模板名称/util.php"); 
?> 
<div class="header-menu">  
             <p {if $navigator_list.config.index eq 1} class="cur" {/if}><a href="../index.php">{$lang.home}</a></p>   
                <ul>                   
                  <!-- {foreach name=nav_middle_list from=$navigator_list.middle item=nav} --> 
                   <li onMouseOver="sw_nav(this,1);" onMouseOut="sw_nav(this,0);" {if $nav.active eq 1} class="curs"{/if}> 
                   <a href="{$nav.url}" {if $nav.opennew eq 1}target="_blank" {/if}>{$nav.name}</a> 
                  <?php  
                                  $subcates = get_subcate_byurl($GLOBALS['smarty']->_var['nav']['url']); 
                             if($subcates!=false) 
                        { 
                                if(count($subcates)>0) 
                            { 
                                    echo "<div class='sub_nav'>"; 
                                 
                                if($subcates) 
                                { 
                                foreach($subcates as $cate) 
                                { 
                                        echo "<a href='".$cate['url']."' class='level_1'>".$cate['name']."</a>"; 
                                    
                                } 
                                }                                 
                                echo "</div><iframe frameborder='0' scrolling='no' class='nomask'></iframe>"; 
                            } 
                        } 
                             ?> 
                   </li> 
                 <!-- {/foreach} --> 
            </ul> 
      <script type="text/javascript"> 
      //初始化主菜单 
                function sw_nav(obj,tag) 
                { 
 
                        var subdivs = obj.getElementsByTagName_r("DIV"); 
                        var ifs = obj.getElementsByTagName_r("IFRAME"); 
                         
                        if(subdivs.length>0) 
                        { 
 
                                if(tag==1) 
                                { 
                                        subdivs[0].style.display = "block"; 
                                        ifs[0].style.display = "block"; 
                                } 
                                else 
                                { 
                                        subdivs[0].style.display = "none";         
                                        ifs[0].style.display = "none"; 
                                } 
                                 
                        } 
                } 
 
      </script>  
本文网址:/news/1047.html
0
QQ在线客服在线客服
用手机扫描二维码 关闭
二维码
XML 地图 | Sitemap 地图