<header>
<div class="am-g am-g-fixed">
<ul class="am-avg-lg-2 topbar flipInY animated">
<li>
<small class="diff1">全国连锁:</small>
<a href="">
<small>南京</small>
</a>
<a href="">
<small>北京</small>
</a>
<a href="">
<small>沈阳</small>
</a>
<a href="">
<small>大连</small>
</a>
<a href="">
<small>苏州</small>
</a>
<a href="">
<small>无锡</small>
</a>
<a href="">
<small>常州</small>
</a>
</li>
<li class="am-text-right diff">
<a href="">
<small>KB+官网微信</small>
</a>
<small>|</small>
<a href="">
<small>KB+官网微博</small>
</a>
<small>|</small>
<a href="">
<small>热线:400-025-0505</small>
</a>
<a href="" class="topbarIco snwb animateCan"></a>
<a href="" class="topbarIco txwb animateCan"></a>
<a href="" class="topbarIco wx animateCan"></a>
</li>
</ul> <div class="diff3 am-cf">
<img src="./amazeui-samples_files/topImg2.jpg" class="am-fr animated bounceInRight">
<a href="./amazeui-samples_files/amazeui-samples.html"><img src="./amazeui-samples_files/headlogo.gif" class="animated bounceInLeft"></a>
<img src="./amazeui-samples_files/topImg1.gif" class="am-margin-left-xl animated bounceInLeft">
</div> <div>
<ul class="am-avg-lg-8 nav">
<li class="box am-text-center">
<a href="./amazeui-samples_files/amazeui-samples.html">首页<small class="am-block">Home</small></a>
<a href="./amazeui-samples_files/amazeui-samples.html" class="hover">首页<small class="am-block">Home</small></a>
</li>
<li class="box am-text-center">
<a href="http://kgdn.kangbeijia.cn/ppls">品牌连锁<small class="am-block">BRAND CHAIN</small></a>
<a href="http://kgdn.kangbeijia.cn/ppls" class="hover">品牌连锁<small class="am-block">BRAND CHAIN</small></a>
</li>
<li class="box am-text-center">
<a href="http://kgdn.kangbeijia.cn/zjtd" style="top: 0px;">专家团队<small class="am-block">Experts</small></a>
<a href="http://kgdn.kangbeijia.cn/zjtd" class="hover" style="top: 0px;">专家团队<small class="am-block">Experts</small></a>
</li>
<li class="box am-text-center">
<a href="http://kgdn.kangbeijia.cn/hxjs" style="top: 0px;">核心技术<small class="am-block">Technology</small></a>
<a href="http://kgdn.kangbeijia.cn/hxjs" class="hover" style="top: 0px;">核心技术<small class="am-block">Technology</small></a>
</li>
<li class="box am-text-center">
<a href="javascript:void(0)" style="top: 0px;">齿科项目<small class="am-block">DENTAL ITEMS</small></a>
<a href="javascript:void(0)" class="hover" style="top: 0px;">齿科项目<small class="am-block">DENTAL ITEMS</small></a>
</li>
<li class="box am-text-center">
<a href="http://kgdn.kangbeijia.cn/myal">美牙案例<small class="am-block">DENTAL CASE</small></a>
<a href="http://kgdn.kangbeijia.cn/myal" class="hover">美牙案例<small class="am-block">DENTAL CASE</small></a>
</li>
<li class="box am-text-center">
<a href="http://kgdn.kangbeijia.cn/shzr">社会责任<small class="am-block">Sociol duty</small></a>
<a href="http://kgdn.kangbeijia.cn/shzr" class="hover">社会责任<small class="am-block">Sociol duty</small></a>
</li>
<li class="box am-text-center diff">
<a href="javascript:void(0)" onclick="swtClick()" style="top: -0.551801899715483px;">在线咨询<small class="am-block">ASK ONLINE</small></a>
<a href="javascript:void(0)" onclick="swtClick()" class="hover" style="top: -0.551801899715483px;">在线咨询<small class="am-block">ASK ONLINE</small></a>
</li>
</ul>
</div>
</div>
</header> <!--二级导行-->
<div class="navLevel">
<div class="navLevelBox" style="">
<div class="am-fl">
<a href="http://kgdn.kangbeijia.cn/ppls/kbjnj/">康贝佳 • 南京</a>
<a href="http://kgdn.kangbeijia.cn/ppls/jdcksb/">尖端齿科设备</a>
<a href="http://kgdn.kangbeijia.cn/ppls/qglsjg/">全国品牌连锁</a>
<a href="http://kgdn.kangbeijia.cn/ppls/aqjyhj/">安全就医环境</a>
<a href="http://kgdn.kangbeijia.cn/ppls/ldjpbz/">六大金牌保障</a>
<a href="http://kgdn.kangbeijia.cn/ppls/lylx/">具体来院路线</a>
<a href="">品牌荣誉</a>
<a href="">KB+ 官方微博</a>
</div>
<ul class="am-avg-lg-3 am-fl">
<li><a href="http://kgdn.kangbeijia.cn/myal/"><img src="./amazeui-samples_files/navLevel2.jpg"></a></li>
<li><a href="http://kgdn.kangbeijia.cn/zjtd/"><img src="./amazeui-samples_files/navLevel3.jpg"></a></li>
<li><a href="javascript:void(0)" onclick="swtCLick()"><img src="./amazeui-samples_files/navLevel4.jpg"></a></li>
</ul>
</div>
<div class="navLevelBox" style="display: none;">
<div class="am-fl">
<a href="http://kgdn.kangbeijia.cn/zjtd/gjzj/">KB+国际专家</a>
<a href="http://kgdn.kangbeijia.cn/zjtd/gnzj/">KB+国内专家</a>
<a href="">凯撒【希腊】</a>
<a href="">牙齿种植:胡正元</a>
<a href="">摩根【美国】</a>
<a href="">牙齿美容:徐辉</a>
<a href="">崔容硕【韩国】</a>
<a href="">牙齿矫正:白延勇</a>
<a href="">任势雄【韩国】</a>
<a href="">口腔修复:陈 鹏</a>
</div>
<ul class="am-avg-lg-3 am-fl">
<li><a href="http://kgdn.kangbeijia.cn/ppls/jdcksb/"><img src="./amazeui-samples_files/navLevel5.jpg" class=""></a></li>
<li><a href="http://kgdn.kangbeijia.cn/hxjs/"><img src="./amazeui-samples_files/navLevel6.jpg"></a></li>
<li><a href="javascript:void(0)" onclick="swtCLick()"><img src="./amazeui-samples_files/navLevel7.jpg"></a></li>
</ul>
</div>
<div class="navLevelBox diff" style="display: none; height: 218px; padding-top: 0px; margin-top: 0px; padding-bottom: 0px; margin-bottom: 0px;">
<div class="am-fl">
<a href="">牙齿种植 |</a>
<a href="">活动义齿 |</a>
<a href="">全瓷牙 |</a>
<a href="">假牙</a><br>
<a href="">牙齿美容 |</a>
<a href="">牙齿矫正 |</a>
<a href="">美容冠 |</a>
<a href="">镶牙</a><br>
<a href="">牙齿美白 |</a>
<a href="http://kgdn.kangbeijia.cn/kqbz/yczj/yxyz/">隐形矫正 |</a>
<a href="http://kgdn.kangbeijia.cn/kqbz/ycmr/qctm/">瓷贴面 |</a>
<a href="http://kgdn.kangbeijia.cn/kqbz/yczl/bay/">拔牙</a><br>
<a href="">牙齿修复 |</a>
<a href="http://kgdn.kangbeijia.cn/kqbz/yczl/ggzl/">根管治疗 |</a>
<a href="http://kgdn.kangbeijia.cn/kqbz/ycmr/kcy/">烤瓷牙 |</a>
<a href="http://kgdn.kangbeijia.cn/kqbz/yczl/by/">补牙</a><br>
<a href="">不良冠体修复 |</a>
<a href="">牙套</a>
</div>
<ul class="am-avg-lg-3 am-fl">
<li><a href="http://kgdn.kangbeijia.cn/zjtd/"><img src="./amazeui-samples_files/navLevel3.jpg"></a></li>
<li><a href="http://kgdn.kangbeijia.cn/ppls/jdcksb/"><img src="./amazeui-samples_files/navLevel5.jpg"></a></li>
<li><a href="javascript:void(0)" onclick="swtCLick()"><img src="./amazeui-samples_files/navLevel4.jpg"></a></li>
</ul>
</div>
<div class="navLevelBox diff" style="display: none; height: 218px; padding-top: 0px; margin-top: 0px; padding-bottom: 0px; margin-bottom: 0px;">
<div class="am-fl">
<a href="">牙齿缺损 |</a>
<a href="http://kgdn.kangbeijia.cn/kqbz/yczz/ycsd/">牙齿松动 |</a>
<a href="http://kgdn.kangbeijia.cn/kqbz/yczj/hy/">虎牙 |</a>
<a href="">门牙突出</a><br>
<a href="">牙齿缺失 |</a>
<a href="http://kgdn.kangbeijia.cn/kqbz/yczj/dbt/">地包天 |</a>
<a href="http://kgdn.kangbeijia.cn/kqbz/yczj/ycyj/">牙齿拥挤 |</a>
<a href="http://kgdn.kangbeijia.cn/kqbz/yczj/by/">龅牙</a><br>
<a href="">牙齿断裂 |</a>
<a href="">瓜子牙 |</a>
<a href="http://kgdn.kangbeijia.cn/kqbz/yczj/ycxs/">牙齿稀疏</a><br>
<a href="http://kgdn.kangbeijia.cn/kqbz/ycmr/ssy/">色素牙 |</a>
<a href="http://kgdn.kangbeijia.cn/kqbz/ycmr/ycxyh/">黄牙 |</a>
<a href="http://kgdn.kangbeijia.cn/kqbz/ycmb/hy/">黑牙 |</a>
<a href="http://kgdn.kangbeijia.cn/kqbz/ycmb/fby/">氟斑牙 |</a>
<a href="http://kgdn.kangbeijia.cn/kqbz/ycmb/shsy/">四环素牙</a><br>
<a href="">不良冠体 |</a>
<a href="">牙痛 |</a>
<a href="http://kgdn.kangbeijia.cn/kqbz/yczl/zy/">蛀牙 |</a>
<a href="http://kgdn.kangbeijia.cn/kqbz/yczl/yzy/">牙周炎 |</a>
<a href="http://kgdn.kangbeijia.cn/kqbz/yczl/yyy/">牙龈炎</a>
</div>
<ul class="am-avg-lg-3 am-fl">
<li><a href="http://kgdn.kangbeijia.cn/hxjs/"><img src="./amazeui-samples_files/navLevel6.jpg" class=""></a></li>
<li><a href="http://kgdn.kangbeijia.cn/myal/"><img src="./amazeui-samples_files/navLevel2.jpg"></a></li>
<li><a href="javascript:void(0)" onclick="swtCLick()"><img src="./amazeui-samples_files/navLevel7.jpg"></a></li>
</ul>
</div>
<div class="navLevelBox" style="">
<div class="am-fl">
<a href="http://kgdn.kangbeijia.cn/myal/zral/">KB+真人案例</a>
<a href="http://kgdn.kangbeijia.cn/yydt/">康贝佳 • 动态</a>
<a href="http://kgdn.kangbeijia.cn/myal/yczzal/">牙齿种植案例</a>
<a href="">KB+官方微信</a>
<a href="http://kgdn.kangbeijia.cn/myal/ycmral/">牙齿美容案例</a>
<a href="">KB+官方微博</a>
<a href="http://kgdn.kangbeijia.cn/myal/ycjzal/">牙齿矫正案例</a>
<a href="http://kgdn.kangbeijia.cn/ppls/aqjyhj/">星级就医环境</a>
<a href="http://kgdn.kangbeijia.cn/myal/ycmbal/">牙齿美白案例</a>
<a href="http://kgdn.kangbeijia.cn/ppls/lylx/">具体来院路线</a>
</div>
<ul class="am-avg-lg-3 am-fl">
<li><a href="http://kgdn.kangbeijia.cn/zjtd/"><img src="./amazeui-samples_files/navLevel3.jpg"></a></li>
<li><a href="http://kgdn.kangbeijia.cn/ppls/jdcksb/"><img src="./amazeui-samples_files/navLevel5.jpg"></a></li>
<li><a href="javascript:void(0)" onclick="swtCLick()"><img src="./amazeui-samples_files/navLevel4.jpg"></a></li>
</ul>
</div>
</div>

Control js:

//二级导行
function showNav(i,t){
$('.navLevel .navLevelBox').eq(i).stop().slideDown().siblings().stop().slideUp();
}
function hideNav(){
$('.navLevel .navLevelBox').slideUp();
}
var hNav,index=0;
$(document).on('mouseover','.nav li',function(){
var _this=$(this);
index=_this.index();
if(index>=1 && index <=5){
clearTimeout(hNav);
showNav(index-1);
}
}).on('mouseleave','.nav li',function(){
if(index>=1 && index <=5){
hNav=setTimeout(hideNav,250);
}
});
$(document).on('mouseover','.navLevel',function(){
clearTimeout(hNav);
}).on('mouseleave','.navLevel',function(){
hNav=setTimeout(hideNav,250);
}); //二级动画效果
var navlevelHover=new base.gClass.hover('.navLevel .navLevelBox li img','pulse animated');
navlevelHover.hoverFun();

CSS skills: 3) show sub-navigate items when mouse hove on nav-item的更多相关文章

  1. CSS skills: 1) Navigate item's animation

    <style> .nav { border-right:1px solid #268eb7; } .nav li{overflow:hidden;height:55px;border-le ...

  2. [CSS] Re-order the appearance of grid items using the order property

    As with flex items, we can set an order value on grid items. Let’s see how this affects the DOM and ...

  3. CSS skills: 6) auto hide the top bar javascript

    //jquery $(document).ready(function(){ $(window).scroll(function() { $(this).scrollTop() > 10 ? $ ...

  4. CSS skills: 5) jquery hover(over,out)

    $(":div[name=div_edit]").each(function() { $(this).hover(function() { $(this).find("& ...

  5. CSS skills: 4) goto page head script

    //返回顶部 $(document).on('click', '.backTop', function (e) { $('html, body').animate({scrollTop: 0}, 50 ...

  6. CSS skills: 2) change hover dynamically by js

    //命名空间 var base = {}; //class base.gClass={}; //鼠标hover交互方法: 注册对象的hover的class特性以及mouseMoveIn,mouseMo ...

  7. ssdb底层实现——ssdb底层是leveldb,leveldb根本上是skiplist(例如为存储多个list items,必然有多个item key,而非暴力string cat),用它来做redis的list和set等,势必在数据结构和算法层面上有诸多不适

    我已经在用ssdb的hash结构,存储了很多数据了,但是我现在的用法正确吗? 我使用hash结构合理吗? 1. ssdb数据库说是类似redis,而且他们都有hash结构,但是他们的命名有点不同,ss ...

  8. 10 Skills Every SharePoint Developer Needs

    10 Skills Every SharePoint Developer Needs(原文) This blog post guides you through the essential skill ...

  9. ko list and css gradient

    <!DOCTYPE html> <html> <head> <title></title> <script src="js/ ...

随机推荐

  1. Activating Google Cloud Storage

    先决条件 你需要下面的内容: 1.一个Google账户,比如来自Gmail.如果你没有,请在Google account signup site注册. 2.一个新的或已经存在的Google Devel ...

  2. CentOS6 root 用户 vi/vim 无法开启高亮

    编辑 /etc/profile.d/vim.sh if [ -n "$BASH_VERSION" -o -n "$KSH_VERSION" -o -n &quo ...

  3. Longest Increasing Sequence

    public class Longest_Increasing_Subsequence { /** * O(N^2) * DP * 思路: * 示例:[1,0,2,4,10,5] * 找出以上数组的L ...

  4. elisp语法

    http://stackoverflow.com/questions/3855862/setq-and-defvar-in-lisp defvar, let, setq的语法分析: defvar in ...

  5. 最大二位子数组和问题(homework-02)

    前面已经谈过最大一维子数组和问题,这里面扩展到二维. 一. 常规情况 一个矩形的数组,找到一个矩形的子数组有最大的元素和,求这个和. 1. 从朴素算法入手,枚举矩形数组的4个顶点,以此计算其数组和.同 ...

  6. ES6学习(2)——arrows箭头函数

    Arrows => 箭头函数 箭头函数,若有了解过coffeeScript的同学,或许对此印象深刻,因为它可以让语法省略不少,特别是对于回调函数,会让代码更清晰简洁. expression 让我 ...

  7. HIVE删除表数据

    HIVE只有INSERT,没有UPDATE跟DELETE,所以通过其他的语句产生DETELE效果. 在HDFS上或者本地服务器上新建空的文件XXXXX, 然后执行: LOAD DATA LOCAL I ...

  8. codeforces 630H (组合数学)

    H - Benches Time Limit:500MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit S ...

  9. POJ 3169 Layout (spfa+差分约束)

    题目链接:http://poj.org/problem?id=3169 差分约束的解释:http://www.cnblogs.com/void/archive/2011/08/26/2153928.h ...

  10. 用Rufus来制作Windows10的U盘安装盘

    博客搬到了fresky.github.io - Dawei XU,请各位看官挪步.最新的一篇是:用Rufus来制作Windows10的U盘安装盘.