2012-06-18 16:43:55 +00:00
<!doctype html>
2011-08-03 19:55:28 +00:00
< html lang = "en" >
< head >
2012-04-23 16:44:17 +00:00
< meta charset = "utf-8" >
2012-06-18 16:43:55 +00:00
< title > jQuery UI Menu - Navigation Menu< / title >
< link rel = "stylesheet" href = "../../themes/base/jquery.ui.all.css" >
2012-09-21 01:41:47 +00:00
< script src = "../../jquery-1.8.2.js" > < / script >
2011-08-03 19:55:28 +00:00
< 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 >
2012-06-18 16:43:55 +00:00
< link rel = "stylesheet" href = "../demos.css" >
2011-08-03 19:55:28 +00:00
< script >
$(function() {
2012-06-18 16:43:55 +00:00
$( "#menu" ).menu({
2011-08-03 19:55:28 +00:00
select: function( event, ui ) {
var link = ui.item.children( "a:first" );
if ( link.attr( "target" ) || event.metaKey || event.shiftKey || event.ctrlKey ) {
return;
}
location.href = link.attr( "href" );
}
});
});
< / script >
< style >
2012-06-18 16:43:55 +00:00
.ui-menu { width: 200px; margin-bottom: 2em; }
2011-08-03 19:55:28 +00:00
< / style >
< / head >
< body >
2012-09-10 15:33:46 +00:00
< ul id = "menu" >
< li > < a href = "?Aberdeen" > Aberdeen< / a > < / li >
< li > < a href = "?Ada" > Ada< / a > < / li >
< li > < a href = "?Adamsville" > Adamsville< / a > < / li >
< li > < a href = "?Addyston" > Addyston< / a > < / li >
< li >
< a href = "?Delphi" > Delphi< / a >
< ul >
< li > < a href = "?Ada" > Ada< / a > < / li >
< li > < a href = "?Saarland" > Saarland< / a > < / li >
< li > < a href = "?Salzburg" > Salzburg< / a > < / li >
< / ul >
< / li >
< li > < a href = "?Saarland" > Saarland< / a > < / li >
< li >
< a href = "?Salzburg" > Salzburg< / a >
< ul >
< li >
< a href = "?Delphi" > Delphi< / a >
< ul >
< li > < a href = "?Ada" > Ada< / a > < / li >
< li > < a href = "?Saarland" > Saarland< / a > < / li >
< li > < a href = "?Salzburg" > Salzburg< / a > < / li >
< / ul >
< / li >
< li >
< a href = "?Delphi" > Delphi< / a >
< ul >
< li > < a href = "?Ada" > Ada< / a > < / li >
< li > < a href = "?Saarland" > Saarland< / a > < / li >
< li > < a href = "?Salzburg" > Salzburg< / a > < / li >
< / ul >
< / li >
< li > < a href = "?Perch" > Perch< / a > < / li >
< / ul >
< / li >
< / ul >
2011-08-03 19:55:28 +00:00
< div class = "demo-description" >
2012-06-18 16:43:55 +00:00
< p > A navigation menu. A list is transformed, adding theming, mouse and keyboard navigation support. Try to tab to the menu then use the cursor keys to navigate.< / p >
2012-09-10 15:33:46 +00:00
< / div >
2011-08-03 19:55:28 +00:00
< / body >
< / html >