jQuery 抄袭笔记(26) :导航2
26 Oct 2011效果:鼠标移动到/离开导航,会自动下拉/上移菜单栏。
01 <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
02 “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
03 <html xmlns=“http://www.w3.org/1999/xhtml” xml:lang=“en-us”>
04 </span>
05 <meta http-equiv=“Content-Type” content=“text/html; charset=gb2312″ />
06</span>Hello Lazynight~~</title>
07 <script type=“text/javascript” src=“jquery-1.1.3.pack.js”></script>
08 <script type=“text/javascript”>
09 $(document).ready(function(){
10 $(“li.item >ol”).hide();
11 $(“li.item”).hover(function(){
12 $(“ol”,this).slideDown(“fast”);}
13 ,function(){
14 $(“ol”,this).slideUp(“fast”);
15 });
16 });
17 </script>
18
19 body {font-family:“微软雅黑”;font-size:16px;}
20 ol {list-style:none;margin:;padding:1px;}
21 li.item {float:left;width:200px;background-color:#000;margin:2px;}
22 li.item a {font-size:15px;color:#fff;margin:3px;padding:2px;}
23 li.item ol {background-color:#fff;margin:1px;}
24 li.item ol a{font-size:15px;color:#000;margin:;}
25
26 </head>
27 </span>
28 <ol class=“menu”>
29 <li class=“item”><a href=“http://lazynight.me”>英伦</a>
30
02 “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
03 <html xmlns=“http://www.w3.org/1999/xhtml” xml:lang=“en-us”>
04 </span>
05 <meta http-equiv=“Content-Type” content=“text/html; charset=gb2312″ />
06
07 <script type=“text/javascript” src=“jquery-1.1.3.pack.js”></script>
08 <script type=“text/javascript”>
09 $(document).ready(function(){
10 $(“li.item >ol”).hide();
11 $(“li.item”).hover(function(){
12 $(“ol”,this).slideDown(“fast”);}
13 ,function(){
14 $(“ol”,this).slideUp(“fast”);
15 });
16 });
17 </script>
18
19 body {font-family:“微软雅黑”;font-size:16px;}
20 ol {list-style:none;margin:;padding:1px;}
21 li.item {float:left;width:200px;background-color:#000;margin:2px;}
22 li.item a {font-size:15px;color:#fff;margin:3px;padding:2px;}
23 li.item ol {background-color:#fff;margin:1px;}
24 li.item ol a{font-size:15px;color:#000;margin:;}
25
26 </head>
27 </span>
28 <ol class=“menu”>
29 <li class=“item”><a href=“http://lazynight.me”>英伦</a>
30
- </span>
- <a</span> href=“http://lazynight.me”>Beautiful Ones</a></li>
32- <a</span> href=“http://lazynight.me”>Beautiful Ones</a></li>
33- <a</span> href=“http://lazynight.me”>Beautiful Ones</a></li>
34 </ol>
35 </li>
36 <li class=“item”><a href=“http://lazynight.me”>爵士</a>
37- </span>
- <a</span> href=“http://lazynight.me”>A Piece Of My Heart</a></li>
39- <a</span> href=“http://lazynight.me”>A Piece Of My Heart</a></li>
40- <a</span> href=“http://lazynight.me”>A Piece Of My Heart</a></li>
41 </ol>
42 </li>
43 <li class=“item”><a href=“http://lazynight.me”>泛西欧</a>
44- </span>
- <a</span> href=“http://lazynight.me”>Aun</a></li>
46- <a</span> href=“http://lazynight.me”>Aun</a></li>
47- <a</span> href=“http://lazynight.me”>Aun</a></li>
48 </ol>
49 </li>
50 </ol>
51
52 </body>
53 </html> </div> 下载源码 转载请注明:[于哲的博客][1] » [jQuery 抄袭笔记(26) :导航2][2] [1]: http://lazynight.me [2]: http://lazynight.me/683.html - <a</span> href=“http://lazynight.me”>Aun</a></li>
45 - <a</span> href=“http://lazynight.me”>A Piece Of My Heart</a></li>
38 - <a</span> href=“http://lazynight.me”>Beautiful Ones</a></li>
31