aboutsummaryrefslogtreecommitdiffstats
path: root/demos/tooltip/tracking.html
diff options
context:
space:
mode:
Diffstat (limited to 'demos/tooltip/tracking.html')
-rw-r--r--demos/tooltip/tracking.html13
1 files changed, 3 insertions, 10 deletions
diff --git a/demos/tooltip/tracking.html b/demos/tooltip/tracking.html
index 84c40e580..1bb1c773a 100644
--- a/demos/tooltip/tracking.html
+++ b/demos/tooltip/tracking.html
@@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>jQuery UI Tooltip - Track the mouse</title>
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
- <script src="../../jquery-1.8.0.js"></script>
+ <script src="../../jquery-1.8.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>
@@ -18,7 +18,7 @@
</style>
<script>
$(function() {
- $( ".demo" ).tooltip({
+ $( document ).tooltip({
track: true
});
});
@@ -26,8 +26,6 @@
</head>
<body>
-<div class="demo">
-
<p><a href="#" title="That's what this widget is">Tooltips</a> can be attached to any element. When you hover
the element with your mouse, the title attribute is displayed in a little box next to the element, just like a native tooltip.</p>
<p>But as it's not a native tooltip, it can be styled. Any themes built with
@@ -37,13 +35,8 @@ will also style tooltips accordingly.</p>
<p><label for="age">Your age:</label><input id="age" title="We ask for your age only for statistical purposes."></p>
<p>Hover the field to see the tooltip.</p>
-</div><!-- End demo -->
-
-
-
<div class="demo-description">
<p>Here the tooltips are positioned relative to the mouse, and follow the mouse while it moves above the element.</p>
-</div><!-- End demo-description -->
-
+</div>
</body>
</html>