jquery hover向下滑动导航特效代码

版权:原创 更新时间:1年以上
[该文章底部包含文件资源,可根据自己情况,决定是否下载资源使用,时间>金钱,如有需要,立即查看资源]

以下是 jquery hover向下滑动导航特效代码 的示例演示效果:

当前平台(PC电脑)
  • 平台:

部分效果截图:

jquery hover向下滑动导航特效代码

HTML代码(index.html):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jquery hover向下滑动导航</title>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<script type="text/javascript" src="js/jquery-1.4.2.js"></script>
<script type="text/javascript" src="js/slide.js"></script>
</head>
<body>
<div class="imenu_bg"> 
	<div class="imenu" topnav="nav5" attr="gyyz"><a href="#">关于叶子</a>
		<div class="submnu"><p>这是关于叶子的内容,我们看他是如何弹出来的</p></div>
	</div>
	<div class="imenu"  topnav="navzx" attr="zx">
		<a href="#">整形中心</a>
		<div class="submnu"></div>
	</div>
    
    <div class="imenu"  topnav="navpf" attr="pf"><a href="#">皮肤中心</a>
		<div class="submnu"></div>
	</div>

	<div class="imenu" topnav="navwc" attr="wc">
		<a href="#">微创中心</a>
		<div class="submnu"></div>
	</div>

	<div class="imenu" topnav="navmc" attr="mc"><a href="#">美齿中心</a>
		<div class="submnu"></div>
	</div>
</div>
</body>
</html>







JS代码(slide.js):

$(function(){
	//导航菜单$('div[topnav]').hover(function(){
	var it = $(this).attr('attr');
	if(it === 'undefined') return false;
	var heht = $(this).find('#' + it).height() + 300 + "px";
	$(this).find('.submnu').height(heht);
	$(this).stop().find('.submnu').animate({
	height:'show'}
,{
	queue:false,duration:500,easing:'easeOutBounce'}
);
	$(this).stop().attr('class','imenu_on').siblings().attr('class','imenu');
}
,function(){
	$(this).stop().find('.submnu').hide();
	$(this).stop().attr('class','imenu');
}
);
}
);
	

CSS代码(style.css):

@charset "utf-8";*{margin:0;padding:0;list-style-type:none;}
a,img{border:0;}
body{font:12px/180% Arial,Helvetica,sans-serif,"新宋体";background:#28953a;}
/*menu开始*/
.imenu_bg{width:915px;height:50px;margin:40px auto 0 auto;position:relative;}
.imenu{width:182px;height:50px;line-height:50px;text-align:center;font-family:"微软雅黑";font-size:16px;cursor:pointer;color:#FFF;float:left;background:transparent url(../images/nav-bg.jpg) repeat-x;margin-right:1px;}
.imenu a{color:#FFF;text-decoration:none}
.imenu a:hover{text-decoration:underline;}
.imenu_on{width:182px;height:50px;background-color:#FFF;color:#015d22;cursor:pointer;float:left;line-height:50px;text-align:center;font-family:"微软雅黑";font-size:16px;margin-right:1px;font-weight:bold;}
.imenu_on a{color:#015d22;text-decoration:none;}
.imenu_on a:hover{color:#015d22;text-decoration:underline;}
.submnu{width:915px;*width:915px;_width:915px;border-top:none;margin:0 auto;display:none;position:absolute;left:0px;top:50px;z-index:1000;background-color:#FFFFFF;filter:alpha(opacity=95);-moz-opacity:0.8;border-radius:0px 0px 20px 20px;}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
34.04 KB
Html Js 菜单导航特效1
最新结算
HTML5 3D效果网页视频背景代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
软件概要设计说明书Word下载
类型: .docx 金额: CNY 0.38¥ 状态: 待结算 详细>
软件概要设计说明书Word下载
类型: .docx 金额: CNY 3.02¥ 状态: 待结算 详细>
.net c#获取声卡信息,声卡数量
类型: .rar 金额: CNY 30.96¥ 状态: 待结算 详细>
.net c#获取声卡信息,声卡数量
类型: .rar 金额: CNY 3.87¥ 状态: 待结算 详细>
.net c#获取电脑的安装软件列表信息,包含名称和版本号
类型: .rar 金额: CNY 30.96¥ 状态: 待结算 详细>
.net c#获取电脑的安装软件列表信息,包含名称和版本号
类型: .rar 金额: CNY 3.87¥ 状态: 待结算 详细>
.net c#获取电脑显示适配器信息
类型: .rar 金额: CNY 30.96¥ 状态: 待结算 详细>
.net c#获取电脑的安装软件列表信息,包含名称和版本号
类型: .rar 金额: CNY 3.87¥ 状态: 待结算 详细>
.net c#获取电脑的安装软件列表信息,包含名称和版本号
类型: .rar 金额: CNY 30.96¥ 状态: 待结算 详细>
各执行环节公正透明,帮助企业完成从赛制策划、活动推广、评委评选到版权转让等系列工作,专业、高效、值得信赖。平均每场赛事可征集到数百至数千组源码作品
合作伙伴
联系我们
  • 邮箱:raozetian@hotmail.com
Copyright 2023-2024 eeigg.com·皖ICP备2024038726号-1
打赏文章