Subversion Repositories wimsdev

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
67 bpr 1
 
2
<style type="text/css">
11272 bpr 3
/*<![CDATA[*/
67 bpr 4
.tt {
5
  font-size:12px;
6
}
7
 
8
#T2tDirect {
9
  border:2px solid red;
10
  background:yellow;
11
  padding:3px;
12
}
11272 bpr 13
/*]]>*/
67 bpr 14
</style>
15
<script type="text/javascript">
11272 bpr 16
/*<![CDATA[*/
67 bpr 17
function FixCalcXY(el)
18
{
19
    if(typeof(el.offsetParent) == "undefined")
20
        return [70, 4000];
21
        var a = new Array(0, -70);
22
        while(el)
23
        {
24
                a[0] += el.offsetLeft || 0;
25
                a[1] += el.offsetTop || 0;
26
                el = el.offsetParent || null;
27
        }
28
        return a;
29
}
11272 bpr 30
/*]]>*/
67 bpr 31
</script>
32
 
33
    <table>
34
      <tbody><tr>
11272 bpr 35
        <td style="width:50px"></td>
67 bpr 36
        <td>
11272 bpr 37
          <table style="background-color:#000099" border="0" cellpadding="0" cellspacing="0">
67 bpr 38
            <tbody><tr>
39
              <td>
40
                <table border="0" cellpadding="6" cellspacing="1" width="100%">
11272 bpr 41
                  <tbody><tr style="background-color:#eeeeee">
67 bpr 42
                    <th align="left">Command</th>
43
                    <th align="left">Description</th>
44
                  </tr>
11272 bpr 45
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 46
                    <td>
11272 bpr 47
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('Tooltip positioned above mouse pointer', ABOVE, true);">ABOVE</a></span>
67 bpr 48
                    </td>
49
                    <td>
50
                      Positions the tooltip above the mousepointer.
51
                      Value: true or false.
5787 bpr 52
                      <br/>&nbsp;<br/>
67 bpr 53
                      Combine with
11272 bpr 54
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('These commands have been applied:<br/>ABOVE, true, OFFSETY, 50', ABOVE,true,OFFSETY,50);">OFFSETY</a></span>
67 bpr 55
                      to adjust the vertical distance from the mousepointer,
56
                      or with
11272 bpr 57
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('These commands have been applied:<br/>ABOVE, true, CENTERMOUSE, true', ABOVE, true, CENTERMOUSE, true, OFFSETX, 0);">CENTERMOUSE</a></span>
67 bpr 58
                      to center the tooltip horizontally above the mousepointer.
59
                    </td>
60
                  </tr>
11272 bpr 61
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 62
                    <td>
11272 bpr 63
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('Changed background color', BGCOLOR,'#f3e0f3');">BGCOLOR</a></span>
67 bpr 64
                    </td>
65
                    <td>
66
                      Background color of the tooltip.
67
                      Value: HTML color, in single quotes, e.g. '#D3E3F6' or 'DarkCyan',
11272 bpr 68
                      or empty string <span class="tt">''</span> for
69
                      <span class="tt"><a class="nodeco" href="javascript:void(0)" onmouseover="Tip('This tooltip has neither a background<br/>nor a border', BORDERWIDTH, 0, BGCOLOR, '', FONTWEIGHT, 'bold', FONTCOLOR, '#00AA00')">no background</a></span>.
5787 bpr 70
                      <br/>Example:
71
                      <br/>
11272 bpr 72
                      <span class="tt">onmouseover="Tip('Some text', BGCOLOR, '#D3E3F6')"</span>
5787 bpr 73
                      <br/>or<br/>
11272 bpr 74
                      <span class="tt">onmouseover="Tip('Some text', BGCOLOR, '')"</span>
67 bpr 75
                    </td>
76
                  </tr>
11272 bpr 77
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 78
                    <td>
11272 bpr 79
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('Tooltip with background image', BGIMG, '../images/tooltip/tt_bg.jpg', PADDING, 10, WIDTH, 180);">BGIMG</a></span>
67 bpr 80
                    </td>
81
                    <td>
82
                      Background image.
83
                      Value: Path to image, in single quotes.
5787 bpr 84
                      <br/>Example:
85
                      <br/>
11272 bpr 86
                      <span class="tt">onmouseover="Tip('Some text', BGIMG, '../images/tipbackground.gif')"</span>
67 bpr 87
                    </td>
88
                  </tr>
11272 bpr 89
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 90
                    <td>
11272 bpr 91
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('Altered border color', BORDERCOLOR, '#dd00aa');">BORDERCOLOR</a></span>
67 bpr 92
                    </td>
93
                    <td>
94
                      Border color.
95
                      Value: HTML color, in single quotes, e.g. '#dd00aa'.
96
                    </td>
97
                  </tr>
11272 bpr 98
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 99
                    <td>
11272 bpr 100
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('Dashed border style', BORDERSTYLE, 'dashed', PADDING, 8);">BORDERSTYLE</a></span>
67 bpr 101
                    </td>
102
                    <td>
103
                      Border style.
104
                      Value: CSS border style, in single quotes.
105
                      Recommend are 'solid' (default), 'dashed' or 'dotted', others may not work in all browsers.
106
                    </td>
107
                  </tr>
11272 bpr 108
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 109
                    <td>
11272 bpr 110
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('Width of tooltip border', BORDERWIDTH, 5);">BORDERWIDTH</a></span>
67 bpr 111
                    </td>
112
                    <td>
113
                      Width of tooltip border.
114
                      Value: Integer&nbsp;&#8805;&nbsp;0. Default is 1. Use 0 for no border.
5787 bpr 115
                      <br/>Example:
116
                      <br/>
11272 bpr 117
                      <span class="tt">onmouseover="Tip('Some text', BORDERWIDTH, 2)"</span>
67 bpr 118
                    </td>
119
                  </tr>
11272 bpr 120
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 121
                    <td align="right">
11272 bpr 122
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('Centered beneath the mouse', CENTERMOUSE, true, OFFSETX, 0, OFFSETY, 22);">CENTERMOUSE</a></span>
67 bpr 123
                    </td>
124
                    <td>
125
                      Centers the tooltip horizontally beneath (or above) the mousepointer.
126
                      Value: true or false.
11272 bpr 127
                      Consider that the tooltip is offset from the center by the value globally set in wz_tooltip.js (<span class="tt">config.&nbsp;OffsetX</span>), or as specified by the OFFSETX command.
5787 bpr 128
                      <br/>Example:
129
                      <br/>
11272 bpr 130
                      <span class="tt">onmouseover="Tip('Some text', CENTERMOUSE, true, OFFSETX, 0)"</span>
67 bpr 131
                    </td>
132
                  </tr>
11272 bpr 133
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 134
                    <td>
11272 bpr 135
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('This tooltip is &quot;sticky&quot;, but it can be closed by clicking into the tooltip or document, since the command CLICKCLOSE, true has been applied.', CLICKCLOSE, true, STICKY, true, WIDTH, 300);">CLICKCLOSE</a></span>
67 bpr 136
                    </td>
137
                    <td>
138
                      Closes the tooltip once the user clicks somewhere inside the tooltip or into the document.
139
                      Value: true, false.
140
                    </td>
141
                  </tr>
11272 bpr 142
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 143
                    <td>
11272 bpr 144
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('Closebutton in the titlebar', CLOSEBTN, true, STICKY, true);">CLOSEBTN</a></span>
67 bpr 145
                    </td>
146
                    <td>
147
                      Displays a closebutton in the titlebar.
148
                      Value: true, false.
149
                    </td>
150
                  </tr>
11272 bpr 151
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 152
                    <td>
11272 bpr 153
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('Altered closebutton colors', CLOSEBTN, true, STICKY, true, CLOSEBTNCOLORS, ['#7799cc', '#ffaaaa', '#ffffff', '#ff0000']);">CLOSEBTNCOLORS</a></span>
67 bpr 154
                    </td>
155
                    <td>
156
                      Colors used for the closebutton.
5787 bpr 157
                      <br/>&nbsp;<br/>
67 bpr 158
Value must be a comma-separated array of 4 color values. Each color in
159
single quotes. The entire array must be enclosed with a pair of square
160
brackets, see example below, since it's actually a single parameter.
5787 bpr 161
The 4 colors have the following meanings: <br/>
67 bpr 162
                      1. Background color
5787 bpr 163
                      <br/>
67 bpr 164
                      2. Text color
5787 bpr 165
                      <br/>
67 bpr 166
                      3. Highlighted background, while the button is being hovered
5787 bpr 167
                      <br/>
67 bpr 168
                      4. Hilighted text color, while the button is being hovered
5787 bpr 169
                      <br/>
11272 bpr 170
                      For each of these colors, you can also specify an empty string <span class="tt">''</span>,
67 bpr 171
                      in which case the title background, or title text color, respectively, is used for that button state.
5787 bpr 172
                      <br/>&nbsp;<br/>
173
                      Example:<br/>
11272 bpr 174
                      <span class="tt">Tip('Text', CLOSEBTN, true, CLOSEBTNCOLORS, ['', '#66ff66', 'white', '#00cc00'], STICKY, true)</span>
5787 bpr 175
                      <br/>
67 bpr 176
                      In this example, the first color value (background color) is an empty string.
177
                      Therefore the closebutton inherits the titlebar background.
178
                    </td>
179
                  </tr>
11272 bpr 180
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 181
                    <td>
11272 bpr 182
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('Altered closebutton text', CLOSEBTN, true, STICKY, true, CLOSEBTNTEXT, 'Click Me');">CLOSEBTNTEXT</a></span>
67 bpr 183
                    </td>
184
                    <td>
185
                      Text in the closebutton.
186
                      Value must be enclosed with single quotes.
187
                      Example:
5787 bpr 188
                      <br/>
11272 bpr 189
                      <span class="tt">Tip('Tooltip text', CLOSEBTN, true, CLOSEBTNTEXT, 'Click Me', STICKY, true)</span>
5787 bpr 190
                      <br/>
67 bpr 191
Globally preset in wz_tooltip.js is '&amp;nbsp;X&amp;nbsp;' - the
192
whitespace entities '&amp;nbsp;' add some horizontal padding to the
193
button. </td>
194
                  </tr>
11272 bpr 195
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 196
                    <td>
11272 bpr 197
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="TagToTip('T2tDirect', COPYCONTENT, false, PADDING, 0, BORDERWIDTH, 0, WIDTH, 280);">COPYCONTENT</a></span>
67 bpr 198
                      <div style="display: none;" id="T2tDirect">
199
Actually, this DIV was embedded right into the HTML of the document,
200
but it has been temporarily converted to a tooltip. </div>
201
                    </td>
202
                    <td>
11272 bpr 203
                      COPYCONTENT has only effect on tooltips created with <span class="tt">TagToTip()</span>, that is, if an HTML element is to be converted to a tooltip.
5787 bpr 204
                      <br/>
67 bpr 205
                      Value: true, false.
5787 bpr 206
                      <br/>
67 bpr 207
If true (this is the default behaviour preset in wz_tooltip.js), just a
208
copy of the text (or inner HTML) of the HTML element is inserted into
209
the tooltip. If false, the entire HTML element (its DOM node) by itself
210
is temporarily converted to a tooltip, which may be useful in the
5787 bpr 211
following aspects: <br/> 1.) If the HTML element converted to a
67 bpr 212
tooltip contains a form with inputs, their current user input will be
5787 bpr 213
maintained even while the tooltip is not displayed. <br/>
67 bpr 214
                      2.) The tooltip inherits the style properties of the HTML element.
5787 bpr 215
                      <br/>
11272 bpr 216
                      Example how to convert an HTML element entirely to a tooltip, by applying COPYCONTENT with the value <span class="tt">false</span>:
5787 bpr 217
                      <br/>
11272 bpr 218
                      <span class="tt">TagToTip('SomeID', COPYCONTENT, false, BORDERWIDTH, 0, PADDING, 0)</span>
5787 bpr 219
                      <br/>
67 bpr 220
Moreover, this example turns off the native tooltip border
221
(BORDERWIDTH,&nbsp;0), and sets the native tooltip padding to zero, so
222
only the padding and border defined for the HTML element itself are
223
displayed. </td>
224
                  </tr>
11272 bpr 225
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 226
                    <td>
11272 bpr 227
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('Delay of 1000 ms until the tooltip shows up.<br/><br/>A small delay of 400 ms is preset in wz_tooltip.js (in the section &quot;GLOBAL TOOLTIP CONFIGURATION&quot;) and can be changed there. Note, however, that values much shorter or longer than 500 ms might be perceived as irritating.', DELAY, 1000, WIDTH, 360);">DELAY</a></span>
67 bpr 228
                    </td>
229
                    <td>
230
                      Tooltip shows up after the specified timeout, in milliseconds.
231
                      A behavior similar to OS based tooltips.
5787 bpr 232
                      <br/>
67 bpr 233
                      Value:
234
                      Integer&nbsp;&#8805;&nbsp;0. Use 0 for no delay.
235
                      In wz_tooltip.js preset and recommended is 400.
5787 bpr 236
                      <br/>Example:
237
                      <br/>
11272 bpr 238
                      <span class="tt">onmouseover="Tip('Some text', DELAY, 1000)"</span>
67 bpr 239
                    </td>
240
                  </tr>
11272 bpr 241
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 242
                    <td>
11272 bpr 243
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('Lifetime of this tip has been limited to 2500 milliseconds', DURATION, 2500);">DURATION</a></span>
67 bpr 244
                    </td>
245
                    <td>
246
                      Time span, in milliseconds, until the tooltip will be hidden,
11272 bpr 247
                      even if the <span class="tt">STICKY</span> command has been applied,
67 bpr 248
                      or even if the mouse is still on the HTML element that has triggered the tooltip.
5787 bpr 249
                      <br/>
67 bpr 250
                      Value:
251
                      Integer&nbsp;&#8805;&nbsp;0.
252
                      Use 0 for no limitation (this is the default)
253
                    </td>
254
                  </tr>
11272 bpr 255
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 256
                    <td>
11272 bpr 257
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover=" Tip('Fade-in animation', FADEIN, 1000, PADDING, 10);">FADEIN</a></span>
67 bpr 258
                    </td>
259
                    <td>
260
                      Fade-in animation.
261
                      The value (integer&nbsp;&#8805;&nbsp;0) specifies the duration of the animation, in milliseconds.
262
 
5787 bpr 263
                      <br/>&nbsp;<br/>
67 bpr 264
                      Not supported in Opera prior to v.9.0, old versions of Safari, some versions of Konqueror.
265
                      These fall back to normal, non-animated behaviour.
266
                    </td>
267
                  </tr>
11272 bpr 268
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 269
                    <td>
11272 bpr 270
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover=" Tip('Fade-out animation', FADEOUT, 1000, PADDING, 10);">FADEOUT</a></span>
67 bpr 271
                    </td>
272
                    <td>
273
                      Fade-out animation.
274
                      The value (integer&nbsp;&#8805;&nbsp;0) specifies the duration of the animation, in milliseconds.
275
 
5787 bpr 276
                      <br/>&nbsp;<br/>
67 bpr 277
                      Recommended: combine with
11272 bpr 278
                      <span class="tt"><a class="nodeco" href="javascript:void(0)" onmouseover="Tip('On another fast trip in Bavaria<br/><img src=\'../images/ko5obersoech.jpg\' width=\'180\' height=\'115\' \/>', FADEIN, 800, FADEOUT, 800, TEXTALIGN, 'center', BGCOLOR, '#ffffff')">FADEIN</a></span>.
5787 bpr 279
                      <br/>&nbsp;<br/>
67 bpr 280
                      Not supported in Opera prior to v.9.0, old versions of Safari, some versions of Konqueror.
281
                      These fall back to normal, non-animated behaviour.
282
                    </td>
283
                  </tr>
11272 bpr 284
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 285
                    <td>
11272 bpr 286
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover=" Tip('Tooltip at fixed position', FIX, FixCalcXY(this));">FIX</a></span>
67 bpr 287
                    </td>
288
                    <td>
289
                      Shows the tooltip at the fixed coordinates [x, y].
290
                      Value: Square-bracketed array of two integers.
5787 bpr 291
                      Example:<br/>
11272 bpr 292
                      <span class="tt">onmouseover="Tip('Some text', FIX, [230, 874])"</span>
5787 bpr 293
                      <br/>
67 bpr 294
                      You can also call function(s) defined elsewhere that calculate the coordinates dynamically:
5787 bpr 295
                      <br/>
11272 bpr 296
                      <span class="tt">onmouseover="Tip('Text', FIX, [CalcFixX(), CalcFixY()], BORDERWIDTH, 2)"</span>
5787 bpr 297
                      <br/>
67 bpr 298
                      or
5787 bpr 299
                      <br/>
11272 bpr 300
                      <span class="tt">onmouseover="Tip('Text', FIX, CalcFixXY(), ABOVE, true)"</span>
5787 bpr 301
                      <br/>
67 bpr 302
                      In the latter example, the function CalcFixXY() must return an array containing the two numbers.
303
                    </td>
304
                  </tr>
11272 bpr 305
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 306
                    <td>
11272 bpr 307
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('This tooltip doesn\'t follow the movements of the mouse since we\'ve applied the FOLLOWMOUSE command with the value false', FOLLOWMOUSE, false, WIDTH, 300);">FOLLOWMOUSE</a></span>
67 bpr 308
                    </td>
309
                    <td>
310
                      The tooltip follows the movements of the mouse.
311
                      Value: true, false. Default: true.
5787 bpr 312
                      <br/>&nbsp;<br/>
67 bpr 313
                      When turning this off by applying the value false,
314
                      the tooltip behaves like OS-based tooltips which don't follow the mouse.
315
                    </td>
316
                  </tr>
11272 bpr 317
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 318
                    <td>
11272 bpr 319
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('Altered font color', FONTCOLOR, '#ff0000');">FONTCOLOR</a></span>
67 bpr 320
                    </td>
321
                    <td>
322
                      Font color.
323
                      Value: HTML color, in single quotes, e.g. '#990099'
324
                    </td>
325
                  </tr>
11272 bpr 326
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 327
                    <td>
11272 bpr 328
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('Changed font face', FONTFACE, 'Courier New, Courier, mono');">FONTFACE</a></span>
67 bpr 329
                    </td>
330
                    <td>
331
                      Font face (font family).
5787 bpr 332
                      <br/>
67 bpr 333
                      Value:
334
                      As you'd specify it in HTML or CSS, enclosed with single quotes, e.g.
11272 bpr 335
                      <span class="tt">Tip('Some text', FONTFACE, 'Arial, Helvetica, sans-serif', FONTSIZE, '12pt')</span>
67 bpr 336
                    </td>
337
                  </tr>
11272 bpr 338
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 339
                    <td>
11272 bpr 340
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('Oops...', FONTSIZE, '72pt');">FONTSIZE</a></span>
67 bpr 341
                    </td>
342
                    <td>
343
                      Font size.
344
                      Value: Size with unit, in single quotes.
345
                      Unit ('px', 'pt', 'em' etc.) is mandatory.
346
                    </td>
347
                  </tr>
11272 bpr 348
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 349
                    <td>
11272 bpr 350
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('FONTWEIGHT, \'bold\'', FONTWEIGHT, 'bold');">FONTWEIGHT</a></span>
67 bpr 351
                    </td>
352
                    <td>
353
                      Font weight.
354
                      Value: 'normal' or 'bold', in single quotes.
355
                    </td>
356
                  </tr>
11272 bpr 357
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 358
                    <td align="right">
11272 bpr 359
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('On the other side', LEFT, true);">LEFT</a></span>
67 bpr 360
                    </td>
361
                    <td>
362
                      Tooltip positioned on the left side of the mousepointer.
363
                      Value: true, false.
5787 bpr 364
                      <br/>
11272 bpr 365
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('LEFT and ABOVE combined...', LEFT, true, ABOVE, true);">LEFT and ABOVE commands combined</a></span>.
5787 bpr 366
                      <br/>Example:
367
                      <br/>
11272 bpr 368
                      <span class="tt">onmouseover="Tip('Some text', LEFT, true, ABOVE, true)"</span>
67 bpr 369
                    </td>
370
                  </tr>
11272 bpr 371
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 372
                    <td>
11272 bpr 373
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('Increased horizontal offset from the mouse', OFFSETX, 150);">OFFSETX</a></span>
67 bpr 374
                    </td>
375
                    <td>
376
                      Horizontal offset from mouse-pointer.
377
                      Value: Any integer. May also be negative.
378
                    </td>
379
                  </tr>
11272 bpr 380
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 381
                    <td>
11272 bpr 382
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('Increased vertical distance from the mouse', OFFSETY, 70);">OFFSETY</a></span>
67 bpr 383
                    </td>
384
                    <td>
385
                      Vertical offset from the mouse-pointer.
386
                      Value: Any integer. May also be negative.
387
                    </td>
388
                  </tr>
11272 bpr 389
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 390
                    <td>
11272 bpr 391
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('A semi-transparent Tooltip', OPACITY, 70, PADDING, 14);">OPACITY</a></span>
67 bpr 392
                    </td>
393
                    <td>
394
                      Transparency of tooltip.
395
                      Value: Integer between 0 (fully transparent) and 100 (opaque, no transparency).
5787 bpr 396
                      <br/>&nbsp;<br/>
397
                      Opacity is the opposite of transparency, i.e.<br/>
398
                      opacity&nbsp;=&nbsp;100&nbsp;-&nbsp;transparency&nbsp;(in&nbsp;percent).<br/>
11272 bpr 399
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('<img src=../images/dragdrop/fateba_fi.jpg width=130 height=103/><br/>Tooltip with image, shadow, background image and fade-in/fade-out animation.', WIDTH, 180, OPACITY, 80, TEXTALIGN, 'center', TITLEALIGN, 'center', SHADOW, true, TITLE, 'Nifty', BGIMG, '../images/tooltip/tt_bg.jpg', FADEIN, 700, FADEOUT, 700);">Another example</a></span>
67 bpr 400
with image (taken on my 9000-km / 5500-miles recumbent bicycle trip
401
Hamburg-Northcape-Munich), shadow via SHADOW command, content centered
402
using TEXTALIGN, background image via BGIMG and animation via FADEIN
5787 bpr 403
and FADEOUT commands. <br/>&nbsp;<br/>
67 bpr 404
                      Not supported in Opera prior to v.9.0, old versions of Safari and some versions of Konqueror.
405
                    </td>
406
                  </tr>
11272 bpr 407
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 408
                    <td>
11272 bpr 409
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('Tip with plenty of padding around its content', PADDING, 30);">PADDING</a></span>
67 bpr 410
                    </td>
411
                    <td>
412
                      Inner spacing of tooltip, between border and content.
413
                      Value: Integer &#8805; 0.
414
                    </td>
415
                  </tr>
11272 bpr 416
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 417
                    <td>
11272 bpr 418
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('SHADOW, true', SHADOW, true);">SHADOW</a></span>
67 bpr 419
                    </td>
420
                    <td>
421
                      Tooltip drops a shadow.
422
                      Value: true, false
423
                    </td>
424
                  </tr>
11272 bpr 425
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 426
                    <td>
11272 bpr 427
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('This one drops a shadow (SHADOW command),<br/>and its shadow color has been changed (SHADOWCOLOR command)', PADDING, 8, SHADOW, true, SHADOWCOLOR, '#dd99aa');">SHADOWCOLOR</a></span>
67 bpr 428
                      <!--br>
429
 
430
                      <form> &nbsp; &nbsp; <select><option>aaa</option><option>bbb</option><option>ccc</option></select></form-->
431
                    </td>
432
                    <td>
433
                      Shadow color.
434
                      Value: HTML color, in single quotes.
5787 bpr 435
                      <br/>Example:
436
                      <br/>
11272 bpr 437
                      <span class="tt">onmouseover="Tip('Some text', SHADOW, true, SHADOWCOLOR, '#dd99aa')"</span>
67 bpr 438
                    </td>
439
                  </tr>
11272 bpr 440
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 441
                    <td>
11272 bpr 442
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('Increased shadow width', SHADOW, true, SHADOWWIDTH, 10, PADDING, 8);">SHADOWWIDTH</a></span>
67 bpr 443
                    </td>
444
                    <td>
445
                      Shadow width (offset).
446
                      Value: Integer&nbsp;&#8805;&nbsp;0.
5787 bpr 447
                      <br/>Example:
448
                      <br/>
11272 bpr 449
                      <span class="tt">onmouseover="Tip('Some text', SHADOW, true, SHADOWWIDTH, 7)"</span>
67 bpr 450
                    </td>
451
                  </tr>
11272 bpr 452
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 453
                    <td>
11272 bpr 454
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('STICKY, true<ul><li style=\'font-family:Verdana,Geneva,sans-serif;font-size:8pt;\'><a href=#top>Top of page<\/a><\/li><li style=\'font-family:Verdana,Geneva,sans-serif;font-size:8pt;\'><a href=\'#docu\'>Begin of documentation<\/a><\/li><\/ul>', STICKY, true, CLICKCLOSE, true, PADDING, 6);">STICKY</a></span>
67 bpr 455
                    </td>
456
                    <td>
457
                      The tooltip stays fixed at its initial position until another tooltip pops up.
458
                      Value: true, false.
5787 bpr 459
                      <br/>&nbsp;<br/>
67 bpr 460
                      With
11272 bpr 461
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('STICKY, true, DURATION, 2500<br/>This tip is sticky, but its lifetime has been limited to 2.5 seconds.', STICKY, true, CLICKCLOSE, true, DURATION, 2500, WIDTH, 280)">DURATION</a></span>
67 bpr 462
                      you can enforce the tooltip to disappear after a certain time span.
463
                    </td>
464
                  </tr>
11272 bpr 465
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 466
                    <td>
11272 bpr 467
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('The TEXTALIGN command takes as values either \'right\', \'center\', \'justify\' or \'left\', the latter being unnecessary since it is the default value.', WIDTH, 200, TITLE, 'Right-Aligned Text', TEXTALIGN, 'right');">TEXTALIGN</a></span>
67 bpr 468
                    </td>
469
                    <td>
470
                      Aligns the text in the body of the tooltip.
471
                      Value: 'right', 'center',
11272 bpr 472
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('<img align=\'right\' src=\'..\/images\/dragdrop\/muckl.jpg\' width=\'100\' height=\'130\'/>This is some quite lengthy text which demonstrates the justification effect which can be achieved by sending the TEXTALIGN command with the \'justify\' value. Note that text justification is not recommended for text that consists of relatively short lines - as is also the case in this tooltip, in particular with the text alongside the Muckl image above.', TITLE, 'Justified text with Muckl', TEXTALIGN, 'justify', WIDTH, 250);">'justify'</a></span>
67 bpr 473
                      or 'left'.
5787 bpr 474
                      <br/>Example:
475
                      <br/>
11272 bpr 476
                      <span class="tt">onmouseover="Tip('Some text', TEXTALIGN, 'right')"</span>
67 bpr 477
                    </td>
478
                  </tr>
11272 bpr 479
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 480
                    <td>
11272 bpr 481
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('TITLE, \'Some title\'', TITLE, 'Some title');">TITLE</a></span>
67 bpr 482
                    </td>
483
                    <td>
484
                      Display a titlebar.
485
                      Value: Text to display, in single quotes.
486
                      May even contain HTML, which gives you additional freedom in fashioning the titlebar.
487
                    </td>
488
                  </tr>
11272 bpr 489
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 490
                    <td>
11272 bpr 491
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('The TITLEALIGN command takes as values either \'right\', \'justify\' or \'left\', the latter being unnecessary since it is the default value.', WIDTH, 240, TITLE, 'Right-Aligned Title', TITLEALIGN, 'right');">TITLEALIGN</a></span>
67 bpr 492
                    </td>
493
                    <td>
494
                      Aligns the text in the titlebar.
495
                      Value: 'right', 'center', 'justify' or 'left'
496
                    </td>
497
                  </tr>
11272 bpr 498
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 499
                    <td>
11272 bpr 500
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('TITLEBGCOLOR, \'#990099\'', TITLE, 'Title background', TITLEBGCOLOR, '#990099');">TITLEBGCOLOR</a></span>
67 bpr 501
                    </td>
502
                    <td>
503
                      Backgroundcolor of the titlebar.
504
                      Value: HTML color, in single quotes.
11272 bpr 505
                      If it's an empty string <span class="tt">''</span>,
67 bpr 506
                      the border color (see also BORDERCOLOR command) is used (this is the default).
507
                    </td>
508
                  </tr>
11272 bpr 509
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 510
                    <td>
11272 bpr 511
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('TITLEFONTCOLOR, \'#ff6666\'', TITLE, 'Red title',  TITLEFONTCOLOR, '#ff6666');">TITLEFONTCOLOR</a></span>
67 bpr 512
                    </td>
513
                    <td>
514
                      Color of title text.
515
                      Value: HTML color, in single quotes.
11272 bpr 516
                      If it's an empty string <span class="tt">''</span>, the backgroundcolor of the tooltip body (see also BGCOLOR command) is used (this is the default).
67 bpr 517
                    </td>
518
                  </tr>
11272 bpr 519
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 520
                    <td>
11272 bpr 521
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('TITLEFONTFACE, \'Courier New, Courier, mono\'', TITLE, 'Changed Title Font',  TITLEFONTFACE, 'Courier New, Courier, mono');">TITLEFONTFACE</a></span>
67 bpr 522
                    </td>
523
                    <td>
524
                      Font face for title text.
525
                      Value: Like in HTML or CSS. Enclosed with single quotes.
11272 bpr 526
                      If the value is an empty string <span class="tt">''</span>, the tooltip body font, in boldified form, is used (this is the default).
5787 bpr 527
                      <br/>
67 bpr 528
                      Example:
5787 bpr 529
                      <br/>
11272 bpr 530
                      <span class="tt">onmouseover="Tip('Some text', TITLE, 'Some Title', TITLEFONTFACE, 'Verdana,sans-serif')"</span>
5787 bpr 531
                      <br/>
67 bpr 532
                    </td>
533
                  </tr>
11272 bpr 534
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 535
                    <td>
11272 bpr 536
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('TITLEFONTSIZE, \'18pt\'', TITLE, 'Big Title',  TITLEFONTSIZE, '18pt');">TITLEFONTSIZE</a></span>
67 bpr 537
                    </td>
538
                    <td>
539
                      Font size of title text.
540
                      Value: Size with unit, in single quotes.
541
                      Unit ('px', 'pt', 'em' etc.) is mandatory.
11272 bpr 542
                      If the value is an empty string <span class="tt">''</span>, the fontsize of the tooltip body is applied.
67 bpr 543
                    </td>
544
                  </tr>
11272 bpr 545
                  <tr style="background-color:#ffffff" valign="top">
67 bpr 546
                    <td>
11272 bpr 547
                      <span class="tt"><a class="nodeco" href="javascript:void(0);" onmouseover="Tip('WIDTH, 200', WIDTH, 200);">WIDTH</a></span>
67 bpr 548
                    </td>
549
                    <td>
550
                      Width of tooltip.
551
                      Value: Integer&nbsp;&#8805;&nbsp;0.
552
                      If 0 (the default), the width is automatically adapted to the content of the tooltip.
5787 bpr 553
                      <br/>&nbsp;<br/>
67 bpr 554
                      Note that the tooltips follow the W3C box model,
555
                      which means that the specified width applies to the actual content of the tooltip,
556
                      excluding padding (see PADDING command), border and shadow.
557
                    </td>
558
                  </tr>
559
                </tbody></table>
560
              </td>
561
            </tr>
562
          </tbody></table>
563
        </td>
11272 bpr 564
        <td style="width:50px"></td>
67 bpr 565
      </tr>
566
    </tbody></table>
567