root / trunk / demos / widget / tooltip.html

Revision 3835, 1.6 kB (checked in by bill, 3 years ago)

demos for miscellaneous widgets

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2        "http://www.w3.org/TR/html4/strict.dtd"> 
3<html>
4<head>
5        <title>Dojo Tooltip Widget Demo</title>
6       
7        <script type="text/javascript">
8                var djConfig = {isDebug: true, debugAtAllCosts: false };
9        </script>
10       
11        <script type="text/javascript" src="../../dojo.js"></script>
12        <script type="text/javascript">
13                dojo.require("dojo.widget.Tooltip");
14        </script>
15
16        <style>
17                .tt { border-bottom: 1px dotted black; cursor: pointer; }
18                body .dojoTooltip { color: blue; }
19        </style>
20</head>
21
22<body>
23        <p>Mouse-over the items below to see tooltips:</p>
24        <p>
25                <span id="one" class="tt">text</span>
26                <span dojoType="tooltip" connectId="one">
27                        <b>
28                                <span style="color: blue;">rich formatting</span>
29                                <span style="color: red; font-size: x-large;"><i>!</i></span>
30                        </b>
31                </span>
32               
33                <a id="three" href="#bogus">anchor</a>
34                <span dojoType="tooltip" connectId="three" caption="inline caption w/fade in" toggle="fade" toggleDuration="500"></span>
35        </p>
36       
37        <button id="four">button</button>
38        <span dojoType="tooltip" connectId="four" caption="tooltip on button"></span>
39       
40        <img id="five" src="../../tests/widget/images/question.gif"></img>
41        <span dojoType="tooltip" connectId="five" toggle="explode">
42                exploding tooltip
43        </span>
44
45    <select id="six">
46      <option value="alpha">Alpha</option>
47      <option value="beta">Beta</option>
48      <option value="gamma">Gamma</option>
49      <option value="delta">Delta</option>
50    </select>
51        <a dojoType="tooltip" connectId="six" href="../../tests/widget/doc0.html" executeScripts="true"></a>
52
53</body>
54</html>
Note: See TracBrowser for help on using the browser.