aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-03-21 22:28:32 +0100
committerjzaefferer <joern.zaefferer@gmail.com>2010-03-21 22:28:32 +0100
commit7dbf7ecfc1d01bd23de1fa2785d58b8451e64f56 (patch)
tree5df02cd7d76d1dcc7c1a3951677a181590da2bb6 /demos
parent05e31932a0667a2b2659f1a443827f98f9a194a3 (diff)
downloadjquery-ui-7dbf7ecfc1d01bd23de1fa2785d58b8451e64f56.tar.gz
jquery-ui-7dbf7ecfc1d01bd23de1fa2785d58b8451e64f56.zip
Copying files from old Googlecode dev branch for tooltip
Diffstat (limited to 'demos')
-rw-r--r--demos/index.html2
-rw-r--r--demos/tooltip/default.html48
-rw-r--r--demos/tooltip/index.html21
3 files changed, 71 insertions, 0 deletions
diff --git a/demos/index.html b/demos/index.html
index db3e2bf83..c9f690921 100644
--- a/demos/index.html
+++ b/demos/index.html
@@ -25,6 +25,7 @@
<script type="text/javascript" src="../ui/jquery.ui.slider.js"></script>
<script type="text/javascript" src="../ui/jquery.ui.sortable.js"></script>
<script type="text/javascript" src="../ui/jquery.ui.tabs.js"></script>
+ <script type="text/javascript" src="../ui/jquery.ui.tooltip.js"></script>
<script type="text/javascript" src="../ui/jquery.effects.core.js"></script>
<script type="text/javascript" src="../ui/jquery.effects.blind.js"></script>
<script type="text/javascript" src="../ui/jquery.effects.bounce.js"></script>
@@ -268,6 +269,7 @@
<dd><a href="progressbar/index.html">Progressbar</a></dd>
<dd><a href="slider/index.html">Slider</a></dd>
<dd><a href="tabs/index.html">Tabs</a></dd>
+ <dd><a href="tooltip/index.html">Tooltip</a></dd>
<dt>Effects</dt>
<dd><a href="animate/index.html">Color Animation</a></dd>
<dd><a href="toggleClass/index.html">Toggle Class</a></dd>
diff --git a/demos/tooltip/default.html b/demos/tooltip/default.html
new file mode 100644
index 000000000..28c781b45
--- /dev/null
+++ b/demos/tooltip/default.html
@@ -0,0 +1,48 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Tooltip - Default demo</title>
+ <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
+ <script type="text/javascript" src="../../jquery-1.3.2.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() {
+ $("a, input").tooltip();
+ });
+ </script>
+ <style>
+ label { display: inline-block; width: 5em; }
+ </style>
+</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
+ <a href="http://themeroller.com" title="ThemeRoller, jQuery UI's theme builder application">ThemeRoller</a>
+ will also style tooltip's accordingly.</p>
+ <p>Tooltip's are also useful for form elements, to show some additional information in the context of each field.</p>
+ <p><label for="age">Your age:</label><input id="age" title="We ask for your age only for statistical purposes." /></p>
+ <p>Click the field to see the tooltip; when you tab out of the field, it gets hidden.</p>
+
+</div><!-- End demo -->
+
+
+
+<div class="demo-description">
+
+<p>Hover the links above or use the tab key to cycle the focus on each element.</p>
+
+</div><!-- End demo-description -->
+
+
+
+</body>
+</html>
diff --git a/demos/tooltip/index.html b/demos/tooltip/index.html
new file mode 100644
index 000000000..ed5cd10e5
--- /dev/null
+++ b/demos/tooltip/index.html
@@ -0,0 +1,21 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Tooltip Demos</title>
+ <link type="text/css" href="../demos.css" rel="stylesheet" />
+</head>
+<body>
+
+<div class="demos-nav">
+ <h4>Examples</h4>
+ <ul>
+ <li class="demo-config-on"><a href="default.html">Default functionality</a></li>
+ <!--
+ <li><a href="foo.html">Foo</a></li>
+ <li><a href="bar.html">Bar</a></li>
+ -->
+ </ul>
+</div>
+
+</body>
+</html>