e8816c05b9560b492436fe29cc0991b79c592fad.svn-base 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <div class="iet">
  2. <p>您的浏览器版本过低,为保证更佳的浏览体验,<a href="https://www.imooc.com/static/html/browser.html">请点击更新高版本浏览器</a></p>
  3. <span class="closed">以后再说<i>X</i></span>
  4. </div>
  5. <script type="text/javascript">
  6. $('.closed').click(function(){
  7. $('.iet').hide();
  8. })
  9. </script>
  10. <div class="header clearfix">
  11. <div class="box clearfix">
  12. <div class="logo fl">
  13. <a href="<yunu:url name='home'/>"><img src="<yunu:config name="site_logo">"></a>
  14. </div>
  15. <div class="nav fr">
  16. <ul>
  17. <li>
  18. <a href="<yunu:url name='home'/>">
  19. <span>首页</span><i>HOME</i>
  20. </a>
  21. </li>
  22. <?php
  23. $chkid = isset($cid) ? $cid : 0;
  24. $catid = isset($category) ? $category['pid'] : 0;
  25. ?>
  26. <yunu:nav typeid='1'>
  27. <li <if condition="$nav['id'] eq $chkid || $nav['id'] eq $catid">class="active"</if>>
  28. <a href="{$nav.url}">
  29. <span>{$nav.title}</span><i>{$nav.subtitle}</i>
  30. </a>
  31. </li>
  32. </yunu:nav>
  33. </ul>
  34. </div>
  35. </div>
  36. </div>
  37. <div class="m_header">
  38. <div class="m_head_content" id="mheader">
  39. <div class="m_head_logo">
  40. <a href="<yunu:url name='home'/>"><yunu:block name='logo2' /></a>
  41. </div>
  42. <div class="menu" id="menu"><img src="__PUBLIC__/img/menu.png"></div>
  43. </div>
  44. <div class="app_menu" id="app_menu">
  45. <ul>
  46. <li><a href="<yunu:url name='home'/>"><span>首页</span></a></li>
  47. <yunu:nav typeid='1'>
  48. <li><a href="{$nav.url}"><span>{$nav.title}</span></a></li>
  49. <div class="v_list">
  50. <volist name="nav['child']" id="v">
  51. <a href="{$v.url}">{$v.title}</a>
  52. </volist>
  53. </div>
  54. </yunu:nav>
  55. </ul>
  56. </div>
  57. <script type="text/javascript">
  58. $("#menu").on('click', function (event) {
  59. if($("#app_menu").css("display")=="none"){
  60. $("#app_menu").slideDown(600);
  61. }else{
  62. $("#app_menu").slideUp(600);
  63. }
  64. });
  65. $("#app_menu li").eq(2).addClass('on');
  66. $("#app_menu li").eq(3).addClass('on');
  67. $("#app_menu li").click(function(){
  68. $(this).toggleClass("active").siblings('#app_menu li').removeClass("active");//切换图标
  69. $(this).next("#app_menu .v_list").slideToggle(500).siblings("#app_menu .v_list").slideUp(500);
  70. });
  71. </script>
  72. </div>