mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
0479ab6af6
Conflicts: demos/autocomplete/combobox.html demos/index.html tests/unit/index.html
74 lines
2.0 KiB
HTML
74 lines
2.0 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>jQuery UI Tooltip - Default demo</title>
|
|
<link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
|
|
<script type="text/javascript" src="../../jquery-1.4.4.js"></script>
|
|
<script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
|
|
<script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
|
|
<script type="text/javascript" src="../../ui/jquery.ui.position.js"></script>
|
|
<script type="text/javascript" src="../../ui/jquery.ui.tooltip.js"></script>
|
|
<link type="text/css" href="../demos.css" rel="stylesheet" />
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
$(".demo").tooltip({
|
|
items: "[href], [title]",
|
|
content: function(response) {
|
|
var href = $(this).attr("href");
|
|
if (/^#/.test(href)) {
|
|
return $(href).html();
|
|
} else if (href) {
|
|
$.get(href, response);
|
|
return "loading...";
|
|
}
|
|
return this.title;
|
|
}
|
|
});
|
|
$("#footnotes").hide();
|
|
});
|
|
</script>
|
|
<style>
|
|
label { display: inline-block; width: 5em; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="demo">
|
|
<ul>
|
|
<li>
|
|
<a href="#footnote1">I'm a link to a footnote.</a>
|
|
</li>
|
|
<li>
|
|
<a href="#footnote2">I'm another link to a footnote.</a>
|
|
</li>
|
|
</ul>
|
|
<input title="This is just an input, nothing special" />
|
|
|
|
<ul>
|
|
<li>
|
|
<a href="ajax/content1.html">Link to ajax content, with tooltip preview!</a>
|
|
</li>
|
|
<li>
|
|
<a href="ajax/content2.html">Another link to ajax content, with tooltip preview!</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<div id="footnotes">
|
|
<div id="footnote1">This is <strong>the</strong> footnote, including other elements</div>
|
|
<div id="footnote2">This is <strong>the other</strong> footnote, including other elements</div>
|
|
</div>
|
|
</div><!-- End demo -->
|
|
|
|
|
|
|
|
<div class="demo-description">
|
|
|
|
<p>Show how to combine different event delegated tooltips into a single instance, by customizing the items and content options.</p>
|
|
|
|
</div><!-- End demo-description -->
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|