• JQ动画导航


    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>jQuery鼠标悬停3d菜单展开动画 - 何问起</title><base target="_blank" />
    <link rel="stylesheet" type="text/css" href="http://hovertree.com/texiao/jquery/93/css/index.css">
    </head>
    <body>
    <div class="nav-main">
    <div class="nav-box">
    <div class="nav">
      <ul class="nav-ul">
          <li><a href="#" class="home"><span>首页</span></a></li>
          <li><a href="#" class="develop"><span>JavaScript</span></a></li>
          <li><a href="#" class="wechat"><span>ASP.NET</span></a></li>
          <li><a href="#" class="case"><span>何问起键盘</span></a></li>
          <li><a href="#" class="news"><span>HoverClock</span></a></li>
          <li><a href="#" class="contact"><span>关于何问起</span></a></li>
      </ul>
    </div>
    <div class="nav-slide">
        <div class="nav-slide-o"></div>
        <div class="nav-slide-o">
            <ul>
                <li><a href="#"><span>hewenqi</span></a></li>
                <li><a href="#"><span>hewenqi</span></a></li>
                <li><a href="#"><span>hewenqi</span></a></li>
                <li><a href="#"><span>hewenqi</span></a></li>
                <li><a href="#"><span>hewenqi</span></a></li>
                <li><a href="#"><span>hewenqi</span></a></li>
                <li><a href="#"><span>hewenqi</span></a></li>
                <li><a href="#"><span>hewenqi</span></a></li>
                <li><a href="#"><span>hewenqi</span></a></li>
                <li><a href="#"><span>hewenqi</span></a></li>
            </ul>
        </div>
        <div class="nav-slide-o">
            <ul>
                <li><a href="#"><span>HoverTreeTop</span></a></li>
                <li><a href="#"><span>HoverTreeTop</span></a></li>
                <li><a href="#"><span>HoverTreeTop</span></a></li>
                <li><a href="#"><span>HoverTreeTop</span></a></li>
                <li><a href="#"><span>HoverTreeTop</span></a></li>
                <li><a href="#"><span>HoverTreeTop</span></a></li>
                <li><a href="#"><span>HoverTreeTop</span></a></li>
                <li><a href="#"><span>HoverTreeTop</span></a></li>
            </ul>
        </div>
        <div class="nav-slide-o">
            <ul>
                <li><a href="#"><span>何问起题库</span></a></li>
                <li><a href="#"><span>何问起题库</span></a></li>
                <li><a href="#"><span>何问起题库</span></a></li>
                <li><a href="#"><span>何问起题库</span></a></li>
                <li><a href="#"><span>何问起题库</span></a></li>
                <li><a href="#"><span>何问起题库</span></a></li>
                <li><a href="#"><span>何问起题库</span></a></li>
                <li><a href="#"><span>何问起题库</span></a></li>
                <li><a href="#"><span>何问起题库</span></a></li>
            </ul>
        </div>
        <div class="nav-slide-o">
            <ul>
                <li><a href="#"><span>网页特效</span></a></li>
                <li><a href="#"><span>网页特效</span></a></li>
                <li><a href="#"><span>网页特效</span></a></li>
                <li><a href="#"><span>网页特效</span></a></li>
                <li><a href="#"><span>网页特效</span></a></li>
                <li><a href="#"><span>网页特效</span></a></li>
                <li><a href="#"><span>网页特效</span></a></li>
                <li><a href="#"><span>网页特效</span></a></li>
                <li><a href="#"><span>网页特效</span></a></li>
            </ul>
        </div>
        <div class="nav-slide-o"></div>
    </div>
    </div>
    </div>
    
    <script type="text/javascript" src="http://down.hovertree.com/jquery/jquery-1.9.1.min.js"></script>
    <script type="text/javascript">
        $(function(){
        var thisTime;
        $('.nav-ul li').mouseleave(function(even){
                thisTime    =    setTimeout(thisMouseOut,1000);
        })
    
        $('.nav-ul li').mouseenter(function(){
            clearTimeout(thisTime);
            var thisUB    =    $('.nav-ul li').index($(this));
            if($.trim($('.nav-slide-o').eq(thisUB).html()) != "")
            {
                $('.nav-slide').addClass('hover');
                $('.nav-slide-o').hide();
                $('.nav-slide-o').eq(thisUB).show();
            }
            else{
                $('.nav-slide').removeClass('hover');
            }
            
        })
        
        function thisMouseOut(){
            $('.nav-slide').removeClass('hover');
        }
         
        $('.nav-slide').mouseenter(function(){
            clearTimeout(thisTime);
            $('.nav-slide').addClass('hover');
        })
        $('.nav-slide').mouseleave(function(){
            $('.nav-slide').removeClass('hover');
        })
    })
    </script>
    </body>
    </html>
  • 相关阅读:
    golang ---cron
    Maven私库安装与配置
    Java8新特性之重复注解(repeating annotations)浅析
    String split
    如何将xml转为python中的字典
    json字符串和dict互转
    为什么空格拷贝到linux 会变成两个
    python之socket编程
    ntpdate设置
    Nginx配置ssl证书
  • 原文地址:https://www.cnblogs.com/dexin/p/6337391.html
Copyright © 2020-2023  润新知