织梦DedeCMS 实现导航条下拉菜单

2017-04-13 21:00:25 dedecms

织梦

DedeCMS 实现导航条下拉菜单,利用dropdown.js,

{dede:channel type='son' noself='yes'} <li><a href="[field:typelink/]">[field:typename/]</a></li> {/dede:channel}

读取二级导航实现下拉效果,

<!--

//二级子类下拉菜单 ,考虑SEO原因放置于底部

-->

<script type='text/Javascript' src='{dede:global.cfg_cmsurl/}/images/js/dropdown.js'></script> {dede:channelartlist typeid='top' cacheid='channelsonlist'} <ul id="dropmenu{dede:field.typeid/}" class="dropMenu"> {dede:channel type='son' noself='yes'} <li><a href="[field:typelink/]">[field:typename/]</a></li> {/dede:channel} </ul> {/dede:channelartlist} <script type="text/Javascript">cssdropdown.startchrome("navMenu")</script>