Home > Backend Development > PHP Tutorial > phpcmsV9 如若实现导航切换

phpcmsV9 如若实现导航切换

WBOY
Release: 2016-06-13 13:17:47
Original
760 people have browsed it

phpcmsV9 如果实现导航切换
其实v9和08是一样的 08只不过是通过body=onlod($catid)方法加载
而v9我们可以通过判断导航id还当前打开页面的栏目id是否相等
代码:
{if($r[catid]==$catid)}加载指定的css样式{/if}
有的可能是二级页面或者更多级次的页面只需加载他是否和父类的id相等就行
{if($r[catid]==$category[cid][catid] $$ $r[catid]==$catid)}加载css样式{/if}

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template