联系官方销售客服

1835022288

028-61286886

POSCMS 版主:POSCMS负责人
如何让导航 看详情
类型:POSCMS 更新时间:2018-08-29 23:25:36

<div class="fr">

<div class="top"><span class="call"></span><span class="call_tel">0</span>

<a><span class="email"></span>service0</a>

<a class="ewm"><span class="weixin"></span>微信公众号 <img src="{THEME_PATH}Public/Web/images/contact_weixin.jpg" width="258" height="258" alt="方维网络微信公众号" /></a>

</div>

<nav class="nav">

<ul class="fix">

<li id="menu1">

<a href="{SITE_URL}" title="{SITE_TITLE}">首页</a>

</li>

{list action=category module=share pid=0}

<li id="menu2">

<a href="{$t.url}" title="{$t.name}">{$t.name}</a>

</li>

{/list}

</ul><span class="nav_icon"></span></nav>

</div>

</div>

</header>

<script type="text/javascript">

document.getElementById("menu1").className = "on";

</script>

现在问题是 打开导航都是默认显示 首页    

怎么做到 我打开 产品  导航  然后对应导航呢 

回帖
  • 迅睿粉丝
    #1楼    迅睿粉丝
    2018-08-29 23:10:31
    0
    <div class="fr">
    						<div class="top"><span class="call"></span><span class="call_tel">0</span>
    							<a><span class="email"></span>service0</a>
    							<a class="ewm"><span class="weixin"></span>微信公众号 <img src="{THEME_PATH}Public/Web/images/contact_weixin.jpg" width="258" height="258" alt="方维网络微信公众号" /></a>
    						</div>
    						<nav class="nav">
    							<ul class="fix">
    								<li id="menu1" {if $indexc}class="on"{/if}>
    									 <a target="_blank" href="{SITE_URL}" title="{SITE_TITLE}">首页</a>
    								</li>
    								 {list action=category module=share pid=0}
    								<li id="menu2" {if IS_SHARE && $catid && in_array($catid, $t.catids)} class="on"{/if}>
    									<a target="_blank" href="{$t.url}" title="{$t.name}">{$t.name}</a>
    								</li>
    								{/list}
    							</ul><span class="nav_icon"></span></nav>
    					</div>
    				</div>
    			</header>
    			<script type="text/javascript">
    				//document.getElementById("menu1").className = "on";
    			</script>
    默认模板,轻松拿奖
    满意答案
  • 迅睿粉丝
    #2楼    迅睿粉丝
    2018-08-29 23:25:36
    0
    6666666666666666666666