aboutsummaryrefslogtreecommitdiffstats
path: root/demos/menu/topalignmenu.html
blob: 42721fe9decec4cb60e4139541aef8d051a1b08b (plain)
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
<!doctype html>
<html>
<head>
	<meta charset="UTF-8" />
	<title>Menu Demo: Top-aligned Menu</title>
	<link type="text/css" href="../demos.css" rel="stylesheet" />
	<link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
	<script src="../../jquery-1.7.2.js"></script>
	<script src="../../ui/jquery.ui.core.js"></script>
	<script src="../../ui/jquery.ui.widget.js"></script>
	<script src="../../ui/jquery.ui.position.js"></script>
	<script src="../../ui/jquery.ui.menu.js"></script>
	<script>
	$(function() {
		$("#topMenu").menu({
			position: { of: "ul:has(a.ui-state-focus):last" }
		});
	});
	</script>
	<style>
		.ui-menu { width: 200px; margin-bottom: 2em; }
	</style>
</head>
<body>

<ul id="topMenu">
	<li><a href="#">Aberdeen</a></li>
	<li><a href="#">Ada</a></li>
	<li><a href="#">Adamsville</a></li>
	<li><a href="#">Addyston</a></li>
	<li>
		<a href="#">Delphi</a>
		<ul>
			<li><a href="#">Ada</a></li>
			<li><a href="#">Saarland</a></li>
			<li><a href="#">Salzburg</a></li>
		</ul>
	</li>
	<li><a href="#">Saarland</a></li>
	<li>
		<a href="#">Salzburg</a>
		<ul>
			<li>
				<a href="#">Delphi</a>
				<ul>
					<li><a href="#">Ada</a></li>
					<li><a href="#">Saarland</a></li>
					<li><a href="#">Salzburg</a></li>
				</ul>
			</li>
			<li>
				<a href="#">Adamsville</a>
				<ul>
					<li><a href="#">Aberdeen</a></li>
					<li><a href="#">Ada</a></li>
					<li><a href="#">Adamsville</a></li>
					<li><a href="#">Addyston</a></li>
					<li>
						<a href="#">Delphi</a>
						<ul>
							<li><a href="#">Ada</a></li>
							<li><a href="#">Saarland</a></li>
							<li><a href="#">Salzburg</a></li>
						</ul>
					</li>
					<li><a href="#">Saarland</a></li>
				</ul>
			</li>
			<li><a href="#">Perch</a>
				<ul>
					<li><a href="#">Addyston</a></li>
					<li><a href="#">Delphi</a></li>
					<li><a href="#">Perch</a></li>
				</ul>
			</li>
		</ul>
	</li>
</ul>

</body>
</html>