2011-07-26 14:55:33 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2012-04-23 16:29:18 +00:00
|
|
|
<meta charset="UTF-8" />
|
2011-07-26 14:55:33 +00:00
|
|
|
<title>Menu Demo: Top-aligned Menu</title>
|
2012-04-23 16:29:18 +00:00
|
|
|
<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>
|
2011-07-26 14:55:33 +00:00
|
|
|
$(function() {
|
|
|
|
$("#topMenu").menu({
|
|
|
|
position: { of: "ul:has(a.ui-state-focus):last" }
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<style>
|
|
|
|
.ui-menu { width: 200px; margin-bottom: 2em; }
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2011-07-27 13:54:40 +00:00
|
|
|
|
2011-07-26 14:55:33 +00:00
|
|
|
<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>
|