首页 > 网站 > 建站经验 > 正文

ASPCMS三级分类当前样式及其解决办法

2024-04-25 20:47:41
字体:
来源:转载
供稿:网友
<div>
        <ul><!– 一级和二级栏目,二级下拉菜单–!>
               <li><a href=”/”>网站首页</a></li>
             {aspcms:navlist}
               <li><a href=”[navlist:link]“{if:[navlist:sortid]={aspcms:topsortid}} {end if}>[navlist:name]</a>
                        <ul>
                          {aspcms:subnavlist type=[navlist:sortid]}
                            <li><a href=”[subnavlist:link]“>[subnavlist:name]</a></li>
                          {/aspcms:subnavlist}
                    </ul>
               </li>
             {/aspcms:navlist}
       </ul>
</div>
    <!–二级 及 三级菜单–!>
                 <ul>
                    {aspcms:navlist type={aspcms:topsortid}}
                            <li><a href=”[navlist:link]” {if:[navlist:sortid]={aspcms:sortid}}{end if} {if:[navlist:sortid]={aspcms:parentsortid}}{end if}>[navlist:name]</a>
                             <ul>
                            {if:[navlist:sortid]={aspcms:parentsortid}}
                                {aspcms:subnavlist type=[navlist:sortid]}
                                 <li><a href=’[subnavlist:link]‘ id=’menu_[subnavlist:sortid]‘>[subnavlist:name]</a></li>
                                {/aspcms:subnavlist}
                            {end if}
                             </ul>
                     </li>
                    {/aspcms:navlist}
                </ul> 
<script language=”javascript”>
              var d = document.getElementById(“menu_{aspcms:sortid}”);
                if(d != null){
                        d.className = “Txtnav2″;
                }
</script>
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表