Warning: Undefined array key "night" in /www/wwwroot/dhaomu.com/wp-content/themes/b2/header.php on line 18

织梦教程DedeCMS系统如何制作下拉导航

dedecms教程织梦如何制作下拉导航!DEDECMS5.7 5.6下拉导航,测试成功,完美兼容各大浏览器。

dedecms教程织梦如何制作下拉导航!DEDECMS5.7 5.6下拉导航,测试成功,完美兼容各大浏览器。

一级导航HTML代码(代码格式按照下面的,一定不能变):

<div id=”navMenu”>
<ul>
<li><a href=’{dede:global.cfg_cmsurl/}/’><spanclass=’bg_left’>主页< /span><spanclass=’bg_right’> </span></a></li>
{dede:channel type=’top’ row=’8′ currentstyle=”<liclass=’current’><a href=’~typelink~’ ~rel~><spanclass=’bg_left’>~typename~</span><spanclass=’bg_right’> </span></a></li>”}
<li><a href=’[field:typeurl/]‘ [field:rel/]><spanclass=’bg_left’>[field:typename/]</span><spanclass=’bg_right’> </span></a></li>
{/dede:channel}
</ul>
</div>

二级导航html代码,一般放在模板文件footer.htm中:

<script type=’text/javascript’ src=’{dede:global.cfg_cmsurl/}/images/js/dropdown.js’></script>
{dede:channelartlist typeid=’top’ row=’8′ cacheid=’channelsonlist’}<ul id=”dropmenu{dede:field.typeid/}”>
{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>

其中的dropdown.js是在各版本的根目录images中的js文件夹中有。至于css怎么 写,你就自己看着办了。

温馨提示:
1.本站大部分内容均收集于网络!若内容若侵犯到您的权益,请发送邮件至:duhaomu@163.com,我们将第一时间处理!
2.资源所需价格并非资源售卖价格,是收集、整理、编辑详情以及本站运营的适当补贴,并且本站不提供任何免费技术支持。
3.所有资源仅限于参考和学习,版权归原作者所有,更多请阅读网站声明

给TA赞赏
共{{data.count}}人
人已赞赏
编程技巧

Shell命令动态开启jvm的gc日志

2016-2-16 9:00:00

编程技巧

织梦教程DedeCMS系统手把手教你让dedecms禁止发布重复文章

2016-2-18 9:00:00

0 条回复 A文章作者 M管理员

Warning: Trying to access array offset on value of type null in /www/wwwroot/dhaomu.com/wp-content/themes/b2/functions.php on line 3914

Warning: Trying to access array offset on value of type null in /www/wwwroot/dhaomu.com/wp-content/themes/b2/functions.php on line 3914
----《》
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索