求助,小白有点懵

快快快跑จุ๊บ 2019-03-03 07:38:59
求助,
我要实现的功能是,在首页点击一级分类后,在点击页面直显示该一级分类对应的二级页面..目前是一点开就调用了所有的二级页面,有点头疼.请各位大神帮忙
下面是前台显示效果

我不懂js...

<ul class="subnav">
{sdcms:rp top="0" table="sd_category" where="followid=[topid]" order="ordnum desc ,cateid desc " var="sid:cateid"}
<!--{rp:eof}<li class="hover">{sdcms.getcateinfo(topid)}</li>{/rp:eof}
<li{asp sdcms.is_current(parentid,$rp[cateid]," class=""hover""")}>
<a href="{$rp[link]}">{$rp[catename]}</a></li>-->
{sdcms:rs top="0" table="sd_category" where="followid=[sid] and " order="ordnum desc ,cateid desc "}
{rs:head}<li>{/rs:head}
<dl>
<dt{if classid=$rs[cateid]} class="hover"{/if}><a href="{$rs[link]}">{$rs[catename]}</a></dt>
</dl>
{rs:foot}</li>{/rs:foot}
{/sdcms:rs}
{/sdcms:rp}
</ul>
...全文
116 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
tangxiang521 2019-03-06
  • 打赏
  • 举报
回复
这个要你自己多调试几次了。

1、生成的菜单。你直接改html代码,能不能把菜单改正确。
如果能改正确,你就能找到你的程序出错的原因了。

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧