1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <div class="iet">
- <p>您的浏览器版本过低,为保证更佳的浏览体验,<a href="https://www.imooc.com/static/html/browser.html">请点击更新高版本浏览器</a></p>
- <span class="closed">以后再说<i>X</i></span>
- </div>
- <script type="text/javascript">
- $('.closed').click(function(){
- $('.iet').hide();
- })
- </script>
- <div class="header clearfix">
- <div class="box clearfix">
- <div class="logo fl">
- <a href="<yunu:url name='home'/>"><img src="<yunu:config name="site_logo">"></a>
- </div>
- <div class="nav fr">
- <ul>
- <li>
- <a href="<yunu:url name='home'/>">
- <span>首页</span><i>HOME</i>
- </a>
- </li>
- <?php
- $chkid = isset($cid) ? $cid : 0;
- $catid = isset($category) ? $category['pid'] : 0;
- ?>
- <yunu:nav typeid='1'>
- <li <if condition="$nav['id'] eq $chkid || $nav['id'] eq $catid">class="active"</if>>
- <a href="{$nav.url}">
- <span>{$nav.title}</span><i>{$nav.subtitle}</i>
- </a>
- </li>
- </yunu:nav>
- </ul>
- </div>
- </div>
- </div>
-
- <div class="m_header">
- <div class="m_head_content" id="mheader">
- <div class="m_head_logo">
- <a href="<yunu:url name='home'/>"><yunu:block name='logo2' /></a>
- </div>
- <div class="menu" id="menu"><img src="__PUBLIC__/img/menu.png"></div>
- </div>
- <div class="app_menu" id="app_menu">
- <ul>
- <li><a href="<yunu:url name='home'/>"><span>首页</span></a></li>
- <yunu:nav typeid='1'>
- <li><a href="{$nav.url}"><span>{$nav.title}</span></a></li>
- <div class="v_list">
- <volist name="nav['child']" id="v">
- <a href="{$v.url}">{$v.title}</a>
- </volist>
- </div>
- </yunu:nav>
- </ul>
- </div>
- <script type="text/javascript">
- $("#menu").on('click', function (event) {
- if($("#app_menu").css("display")=="none"){
- $("#app_menu").slideDown(600);
- }else{
- $("#app_menu").slideUp(600);
- }
- });
- $("#app_menu li").eq(2).addClass('on');
- $("#app_menu li").eq(3).addClass('on');
- $("#app_menu li").click(function(){
- $(this).toggleClass("active").siblings('#app_menu li').removeClass("active");//切换图标
- $(this).next("#app_menu .v_list").slideToggle(500).siblings("#app_menu .v_list").slideUp(500);
- });
- </script>
- </div>
|