Dedecms Dream navigation Bar Two-level menu implementation method

Source: Internet
Author: User
Tags php website

Dede navigation drop-down menu, one-level column add level Two drop-down menu

Using dedecms5.6--5.7

Paste this code into the templets\default\head.htm file.
<!--//Level two sub-category drop-down menu, consider SEO reasons placed at the bottom--
<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>

After re-generation and look at the effect, you will find that the navigation bar has appeared in the drop-down menu, but the background is transparent, because there is no background image.
You need to put the DedeCMS5.5 program folder \dede\img in the mmenubg.gif (green background image for the green theme template) or DedeCMS5.5 program folder \templets\images mmenubg.gif ( Blue background picture, for blue theme template) copy to DedeCMS5.6.7 program folder/templets/default/images below, now you look at the effect, hehe, the navigation bar is not already appear familiar drop-down menu.

Here's the whole code:

<!--//bottom template-->
<div class= "Footer w960 Center mt1 Clear"
 <!--
   In order to support the development of the Dream Team, please retain the link information of the Dream Content management system.
   We express our sincere thanks to the friends who support the development of the Dream Team! Weaving dreams because you are more exciting!
 -->
   
<!--//Level two sub-category drop-down menu, consider SEO reasons placed at the bottom   -->
<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>

<div class= "Footer_left" ></div>
<div class= "Footer_body" >
<p class= "Powered" >
Powered by <a href= "http://www.dedecms.com" title= "Weave Dream Content Management System (DEDECMS)--The most professional PHP website management system, easy to build the preferred weapon of the station. "target=" _blank "><strong>dedecms{dede:global.cfg_version/}</strong></a>©2004-2011 <a href= "http://www.desdev.cn/" target= "_blank" >DesDev</a> inc.<br/><div class= "Copyright" >{ dede:global.cfg_powerby/} {dede:global.cfg_beian/}</div></p>
<!--/powered--
</div>
<div class= "Footer_right" ></div>
</div>

Dedecms Dream navigation Bar Two-level menu implementation method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.