Jquery 下拉菜单动画效果

本文介绍了一个基于HTML、CSS、JavaScript等技术构建的网页导航栏实例,使用了jQuery库实现滑动菜单效果,提供了丰富的用户体验。文章详细阐述了导航栏的结构、样式设置、交互逻辑以及关键代码片段。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

 

http://www.corange.cn//uploadfiles/3768jquery_menu_32233.jpg


演示地址:http://www.corange.cn/demo/3768/index.html 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title></title>

<link rel="stylesheet" href="demo.css" type="text/css" media="all">
<link rel="stylesheet" href="jquery.dropSlideMenu.css" type="text/css" media="all">

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script> 
<script type="text/javascript" src="jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="jquery.event.hover.js"></script>
<script type="text/javascript" src="jquery.dropSlideMenu.js"></script>

<script type="text/javascript">
$(document).ready(function() {
$("#navigation").dropSlideMenu({
indicators: true, // adds a div to the list items for attaching indicators (arrows)
clickstream: true, // highlights the clickstream in a menu by comparing the links to the current URL path
openEasing: "easeOutQuad", // open animation effect
closeEasing: "easeInQuad", // close animation effect
duration: 600, // speed of drop down animation (in milliseconds)
delay: 800, // delay before the drop down closes (in milliseconds)
hideSelects: true // hide all select elements on the page when the menu is active (IE6 only)
});
});
</script>
</head>

<body>
<p>&nbsp;</p>
<div id="container">
<div id="navigation">
<ul>
<li><a href="/home">Home</a></li>
<li><a href="">Planets</a>
<ul>
<li><a href="#">Mercury</a></li>
<li><a href="#">Venus</a></li>
<li><a href="#">Earth</a></li>

</ul>
</li>
<li><a href="http://www.corange.cn">corange.cn</a>
<ul>
<li><a href="http://www.corange.cn/html/corange_6_1.html">asp</a></li>
<li><a href="http://www.corange.cn/html/corange_15_1.html">js</a></li>

</ul>
</li>
<li><a href="#">Oceans</a>
<ul>
<li><a href="/oceans/arctic">Arctic</a></li>
<li><a href="/oceans/atlantic">Atlantic</a></li>

</ul>
</li>
<li><a href="/about">About</a></li>

</ul>
</div>

</div>
</body>
</html> 

分享到: 0


原文地址:http://www.corange.cn/archives/2011/05/3768.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值