基于jQuery实现动画效果多功能菜单



75 298 100



特效描述:基于jQuery实现 动画效果 多功能菜单,基于jQuery实现动画效果多功能菜单

代码结构

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/reset.css">
<link rel="stylesheet" type="text/css" href="css/blue/responsive.css">
<link rel="stylesheet" type="text/css" href="css/blue/color.css">
<link rel="stylesheet" type="text/css" href="font/titillium/stylesheet.css">
<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="css/animation.css">
<link rel="stylesheet" type="text/css" href="css/live-preview.css">
<link rel="stylesheet" type="text/css" href="live-font/stylesheet.css">
<link rel="stylesheet" href="css/font-awesome-ie7.min.css">
<link rel="stylesheet" type="text/css" href="css/blue/desktop-ie.css">

2. 引入JS

<script type="text/javascript" src="js/modernizr.custom.29473.js"></script>
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="js/dropdown.js"></script>

3. HTML代码

<br><br>
<ul class="nav">
  <!-- Start Home -->
  <li id="first"><a href="#home" class="label"><i class="icon-home" ></i>Home<i class="icon-chevron-down"></i></a>
    <ul class="one" id="home">
      <li>
        <h3><i class="icon-user"></i>Welcome</h3>
        <p>In the past, HTML alone provided basic formatting options for text, images, tables, and other web page elements. But today, professional web designers use CSS to style their pages. In fact, the older HTML tags used to format text and other page elements have been phased out by the World Wide Web Consortium (W3C), the organization that defines Web standards, in favor of CSS.</p>
      </li>
    </ul>
  </li>
  <!-- End Home --> 
  <!-- Start About -->
  <li><a href="#about" class="label"><i class="icon-info-sign"></i>About Us<i class="icon-chevron-down"></i></a>
    <ul class="one" id="about">
      <li><img src="images/about.png" width="160" height="160" alt="image">
        <h3><i class="icon-user"></i>About Us</h3>
        <p>In the past, HTML alone provided basic formatting options for text, images, tables, and other web page elements. But today, professional web designers use CSS to style their pages. In fact, the older HTML tags used to format text and other page elements have been phased out by the World Wide Web Consortium (W3C), the organization that defines Web standards, in favor of CSS.</p>
        <h6 class="light-color"><i class="icon-quote-left"></i>Is there a way to apply styles to an element only if it’s embedded within a particular element, rather than universally? In other words, can you ask for example that italics within headlines be boldface<i class="icon-quote-right"></i></h6>
      </li>
    </ul>
  </li>
  <!-- End About --> 
  <!-- Start Links -->
  <li> <a href="#links" class="label"><i class="icon-list-ul"></i>Links<i class="icon-chevron-down"></i></a>
    <ul class="one" id="links">
      <li>
        <div id="link-1" class="link-block light-color">
          <h5><i class="icon-laptop"></i>Links 1</h5>
          <ul>
            <li><a href="#"><i class="icon-ok"></i> Css</a></li>
            <li><a href="#"><i class="icon-ok"></i> Html5</a></li>
            <li><a href="#"><i class="icon-ok"></i> java Script</a></li>
            <li><a href="#"><i class="icon-ok"></i> Php</a></li>
            <li><a href="#"><i class="icon-ok"></i> JQuery</a></li>
            <li><a href="#"><i class="icon-ok"></i> Css 3</a></li>
            <li><a href="#"><i class="icon-ok"></i> Asp.Net</a></li>
          </ul>
        </div>
        <div id="link-2" class="link-block light-color">
          <h5><i class="icon-camera-retro"></i>Links 2</h5>
          <ul>
            <li><a href="#"><i class="icon-ok"></i> Photoshop</a></li>
            <li><a href="#"><i class="icon-ok"></i> Dreamweaver</a></li>
            <li><a href="#"><i class="icon-ok"></i> Fireworks</a></li>
            <li><a href="#"><i class="icon-ok"></i> Expression Web</a></li>
            <li><a href="#"><i class="icon-ok"></i> Corel</a></li>
            <li><a href="#"><i class="icon-ok"></i> Visual Studio</a></li>
            <li><a href="#"><i class="icon-ok"></i> Adobe</a></li>
          </ul>
        </div>
        <div id="link-3" class="link-block light-color">
          <h5><i class="icon-desktop"></i>Links 3</h5>
          <ul>
            <li><a href="#"><i class="icon-ok"></i> Forms</a></li>
            <li><a href="#"><i class="icon-ok"></i> Sliders</a></li>
            <li><a href="#"><i class="icon-ok"></i> Navigation</a></li>
            <li><a href="#"><i class="icon-ok"></i> Layouts</a></li>
            <li><a href="#"><i class="icon-ok"></i> Buttons</a></li>
            <li><a href="#"><i class="icon-ok"></i> tabs</a></li>
            <li><a href="#"><i class="icon-ok"></i> Menu</a></li>
          </ul>
        </div>
        <div id="link-4" class="link-block light-color">
          <h5><i class="icon-music"></i>Links 4</h5>
          <ul>
            <li><a href="#"><i class="icon-ok"></i> Css</a></li>
            <li><a href="#"><i class="icon-ok"></i> Html5</a></li>
            <li><a href="#"><i class="icon-ok"></i> java Script</a></li>
            <li><a href="#"><i class="icon-ok"></i> Php</a></li>
            <li><a href="#"><i class="icon-ok"></i> JQuery</a></li>
            <li><a href="#"><i class="icon-ok"></i> Css 3</a></li>
            <li><a href="#"><i class="icon-ok"></i> Asp.Net</a></li>
          </ul>
        </div>
        <div id="link-5" class="link-block light-color">
          <h5><i class="icon-dashboard"></i>Links 5</h5>
          <ul>
            <li><a href="#"><i class="icon-ok"></i> Forms</a></li>
            <li><a href="#"><i class="icon-ok"></i> Sliders</a></li>
            <li><a href="#"><i class="icon-ok"></i> Navigation</a></li>
            <li><a href="#"><i class="icon-ok"></i> Layouts</a></li>
            <li><a href="#"><i class="icon-ok"></i> Buttons</a></li>
            <li><a href="#"><i class="icon-ok"></i> tabs</a></li>
            <li><a href="#"><i class="icon-ok"></i> Menu</a></li>
          </ul>
        </div>
      </li>
    </ul>
  </li>
  <!-- End Links --> 
  <!-- Start DropDown --> 
  <!-- Start Level 1 -->
  <li> <a href="#menu" class="label"><i class="icon-cog"></i>DropDown<i class="icon-chevron-down"></i></a>
    <ul class="one" id="menu">
      <li class="level-1"><a href="#">Photoshop</a></li>
      <!-- Start Level 2 -->
      <li> <a href="#">Dreamweaver<i class="icon-chevron-right"></i></a>
        <ul class="one" id="sub-menu">
          <li class="level-2"><a href="#">Page 1</a></li>
          <!-- Start Level 3 -->
          <li> <a href="#">Page 2<i class="icon-chevron-right"></i></a>
            <ul class="one" id="sub-menu2">
              <li class="level-3"><a href="#">Page 1</a></li>
              <li class="level-3"><a href="#">Page 2</a></li>
              <li class="level-3"><a href="#">Page 3</a></li>
              <li class="level-3"><a href="#">Page 4</a></li>
            </ul>
          </li>
          <!-- End Level 3 -->
          <li class="level-2"><a href="#">Page 3</a></li>
        </ul>
      </li>
      <!-- End Level 2 -->
      <li class="level-1"><a href="#">Fireworks</a></li>
    </ul>
  </li>
  <!-- End Level 1 --> 
  <!-- Start DropDown --> 
  <!-- Start Products -->
  <li> <a href="#products" class="label"><i class="icon-list-ul"></i>Products<i class="icon-chevron-down"></i></a>
    <ul class="one" id="products">
      <li>
        <h3><i class="icon-user"></i>Top Product</h3>
        <div class="product light-color" id="item-1"> <img src="images/p-1.png" alt="product-1">
          <p><strong>Name:</strong> Product1</p>
          <p><strong>Composer:</strong> Amir</p>
          <p><strong>Price:</strong> 340$</p>
          <p><strong>About:</strong> Is there a way to apply styles to an element only if it’s embedded within a
            particular element, rather than universally?</p>
        </div>
        <div class="product light-color" id="item-2"> <img src="images/p-1.png" alt="product-1">
          <p><strong>Name:</strong> Product1</p>
          <p><strong>Composer:</strong> Amir</p>
          <p><strong>Price:</strong> 340$</p>
          <p><strong>About:</strong> Is there a way to apply styles to an element only if it’s embedded within a
            particular element, rather than universally?</p>
        </div>
        <div class="product light-color" id="item-3"> <img src="images/p-1.png" alt="product-1">
          <p><strong>Name:</strong> Product1</p>
          <p><strong>Composer:</strong> Amir</p>
          <p><strong>Price:</strong> 340$</p>
          <p><strong>About:</strong> Is there a way to apply styles to an element only if it’s embedded within a
            particular element, rather than universally?</p>
        </div>
        <div id="preamble">
          <h5><i class="icon-tag"></i>preamble</h5>
          <h6 class="light-color">Is there a way to apply styles to an element only if it’s embedded within a
            particular element, rather than universally? In other words, can you ask for
            example that italics within headlines be boldface</h6>
        </div>
      </li>
    </ul>
  </li>
  <!-- End Products --> 
  <!-- Start Contact Us -->
  <li id="right"> <a href="#contact" class="label"><i class="icon-envelope"></i>Contact Us<i class="icon-chevron-down"></i></a>
    <ul class="one" id="contact">
      <li id="part-left">
        <p><strong><i class="icon-home"></i>Address :</strong> Bayat Alley, Abbasi str, South kerman, Tehran</p>
        <p><strong><i class="icon-phone"></i>Phone :</strong> +98 939 557 30 74</p>
        <p><strong><i class="icon-file-alt"></i>Fax :</strong> +98 778 31 506</p>
        <p><strong><i class="icon-envelope"></i>Email :</strong> amir.silent@gmail.com </p>
        <h4 id="h4-social"><i class="icon-group"></i>Social Network</h4>
        <a href="#"><i class="icon-facebook-sign"></i></a> <a href="#"><i class="icon-twitter-sign"></i></a> <a href="#"><i class="icon-google-plus-sign"></i></a> <a href="#"><i class="icon-linkedin-sign"></i></a><a href="#"><i class="icon-pinterest-sign"></i></a> </li>
      <li id="part-right">
        <p>Name<em>*</em></p>
        <input name="name" type="text" id="name" class="light-color">
        <p>E-mail<em>*</em></p>
        <input name="email" type="text" id="email" class="light-color">
        <p>Message<em>*</em></p>
        <textarea name="comment" cols="" rows="" id="comment" class="light-color"></textarea>
        <input name="send" type="button" id="send" value="Send">
      </li>
    </ul>
  </li>
  <!-- End Contact Us -->
</ul>
<br><br><br><br><br>
<div style="text-align:center;clear:both">
</div>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 滚动导航菜单 滑动导航菜单 浮动导航菜单 导航切换 右键菜单 收缩导航菜单 html5动画导航菜单 flash导航菜单 滚动切换 滑动选项卡切换 加载动画 选项卡切换 滑动手风琴 滑动星星打分 html5弹窗动画 html5动画 导航菜单 其他 html5按钮动画 导航切换 html5图片动画 下拉导航菜单 文字切换 导航菜单插件 鼠标滑过

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到