phpcms v9树型循环输出栏目及子栏目解决方案

前端之家收集整理的这篇文章主要介绍了phpcms v9树型循环输出栏目及子栏目解决方案前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
PHPcms二级页面的树型菜单完美解决方案,鼠标移动上去就下拉菜单下来:

文件:



代码
function fntoshow(catid){
  if($('#ul'+catid).css('display')=='none'){
   $('#ul'+catid).slideDown();
  } 
 }


代码:



          {pc:content action="category" catid="$top_parentid" num="15" siteid="$siteid" order="listorder ASC"}
              {loop $data $r}
                  {if $r[catid]==$catid}
                     
  • SEOver="fntoshow({$r[catid]})">
             
                          
                             {if $r[child]}
                                               
                            {/if}
                            
                         

  •                   {else}
                         
  • SEOver="fntoshow({$r[catid]})">

  •                      
                             {if $r[child]}
                                
                  
                            {/if}
                                   
                      {/if}       
                  {/loop}
              {/pc}
             
    原文链接:https://www.f2er.com/phpcms/403717.html

    猜你在找的phpcms相关文章