<input type="hidden" value="1" id="hidTypeId" />
<div id="menu" class="menu">
<ul class="mwrap">
<li class="mli">
<a href="{dede:global.cfg_basehost/}" class="mlink" id="topMenu1">
<span class="mico mico_home"><span class="micoi"></span></span>
<span class="mname">首页</span>
</a>
</li>
<li class="mli">
<a href="[field:typelink/]" class="mlink curr" id="topMenu2">
<span class="mico mico_about"><span class="micoi"></span></span>
<span class="mname">[field:typename/]</span>
</a>
</li>
<li class="mli">
<a href="[field:typelink/]" class="mlink" id="topMenu3">
<span class="mico mico_service"><span class="micoi"></span></span>
<span class="mname">[field:typename/]</span>
</a>
</li>
<li class="mli">
<a href="[field:typelink/]" class="mlink" id="topMenu4">
<span class="mico mico_case"><span class="micoi"></span></span>
<span class="mname">[field:typename/]</span>
</a>
</li>
<li class="mli">
<a href="[field:typelink/]" class="mlink" id="topMenu5">
<span class="mico mico_news"><span class="micoi"></span></span>
<span class="mname">[field:typename/]</span>
</a>
</li>
<li class="mli">
<a href="[field:typelink/]" class="mlink" id="topMenu6">
<span class="mico mico_contact"><span class="micoi"></span></span>
<span class="mname">[field:typename/]</span>
</a>
</li>
</ul>
<div class="mshadow"></div>
</div>
</div>
<script type="text/javascript">
var typeid= document.getElementById("hidTypeId").value;
for(var i = 1 ;i <= 6;i++)
{
if(i == typeid){
document.getElementById("topMenu" + i).className="mlink curr";
}else
{
document.getElementById("topMenu" + i).className="mlink";
}
}
</script>
dedecms如何把这个导航做成循环导航?求解
答案:2 悬赏:40 手机版
解决时间 2021-02-06 13:43
- 提问者网友:放下
- 2021-02-06 03:50
最佳答案
- 五星知识达人网友:举杯邀酒敬孤独
- 2021-02-06 04:03
arclist 从0开始 [field:global name=autoindex
runphp="yes"]@me=@me-1;[/field:global]
channel 从1开始 [field:global name=autoindex
runphp="yes"]@me=@me+1;[/field:global][field:typename/]
channelartlist 从0开始 {dede:global name=itemindex
runphp='yes'}@me=@me-1;{/dede:global}你的那个id1 2 3 看下是在哪个的标签里面用对应的即可
runphp="yes"]@me=@me-1;[/field:global]
channel 从1开始 [field:global name=autoindex
runphp="yes"]@me=@me+1;[/field:global][field:typename/]
channelartlist 从0开始 {dede:global name=itemindex
runphp='yes'}@me=@me-1;{/dede:global}你的那个id1 2 3 看下是在哪个的标签里面用对应的即可
全部回答
- 1楼网友:北城痞子
- 2021-02-06 04:43
搜一下:dedecms如何把这个导航做成循环导航?求解
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯