-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdemo.html
executable file
·138 lines (112 loc) · 2.96 KB
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>make_dropdown:demo</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<style type="text/css">
/* common page styles */
body
{ background: #6595A3;
padding: 0 20px}
.clear
{ clear: both;
overflow: hidden;
height: 0}
#all
{ width: 80%;
min-width: 650px;
margin: 40px auto 0 auto;
background: #FCFFED;
padding: 20px 35px}
h1
{ font: 26px tahoma, arial;
color: #324143}
p
{ font: 12px tahoma, arial;
color: #171F26;
margin-bottom: 25px}
a
{ color: #324143}
</style>
</head>
<body>
<div id="all">
<h1>make_dropdown Demo</h1>
<p>Hover or click on the menubar below. Try it using both your computer and your phone or tablet!</p>
<p>View the source of this page for a complete example of how to use make_dropdown.</p>
<p>
<a href="https://github.com/suan/make_dropdown">(Back to) project page</a><br/>
<a href="http://suanaikyeo.com/blog/make_dropdown/">(Back to) blog post</a>
</p>
<style type="text/css">
/* menu styles */
#menubar
{ margin: 0;
padding: 0}
#menubar li
{ float: left;
list-style: none;
font: 12px Tahoma, Arial}
#menubar li a
{ display: block;
background: #324143;
padding: 5px 12px;
text-decoration: none;
border-right: 1px solid white;
width: 70px;
color: #EAFFED;
white-space: nowrap}
#menubar li a:hover
{ background: #24313C}
#menubar li ul
{ margin: 0;
padding: 0;
position: absolute;
visibility: hidden;
border-top: 1px solid white}
#menubar li ul li
{ float: none;
display: inline}
#menubar li ul li a
{ width: auto;
background: #A9C251;
color: #24313C}
#menubar li ul li a:hover
{ background: #8EA344}
</style>
<!--
Time, time, take us back before the line was drawn
Before the sky turned black. -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
<script src="make_dropdown.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){ $('#menubar > li').make_dropdown(); });
</script>
<ul id="menubar">
<li><a href="#">JavaScript</a>
<ul>
<li><a href="#">Drop Down Menu</a></li>
<li><a href="#">jQuery Plugin</a></li>
<li><a href="#">Ajax Navigation</a></li>
</ul>
</li>
<li><a href="#">Effect</a>
<ul>
<li><a href="#">Slide Effect</a></li>
<li><a href="#">Fade Effect</a></li>
<li><a href="#">Opacity Mode</a></li>
<li><a href="#">Drop Shadow</a></li>
<li><a href="#">Semitransparent</a></li>
</ul>
</li>
<li><a href="#">Navigation</a></li>
<li><a href="#">HTML/CSS</a></li>
<li><a href="#">Help</a></li>
</ul>
<div class="clear"> </div>
<br/>
</div>
</body>
</html>