|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <title>Tooltip Visual Test: Default</title> |
| 5 | + <link rel="stylesheet" href="../visual.css" type="text/css" /> |
| 6 | + <link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css"> |
| 7 | + <script type="text/javascript" src="../../../jquery-1.5.1.js"></script> |
| 8 | + <script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script> |
| 9 | + <script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script> |
| 10 | + <script type="text/javascript" src="../../../ui/jquery.ui.position.js"></script> |
| 11 | + <script type="text/javascript" src="../../../ui/jquery.ui.button.js"></script> |
| 12 | + <script type="text/javascript" src="../../../ui/jquery.ui.tooltip.js"></script> |
| 13 | + <script type="text/javascript" src="../../../ui/jquery.effects.core.js"></script> |
| 14 | + <script type="text/javascript" src="../../../ui/jquery.effects.blind.js"></script> |
| 15 | + <script type="text/javascript" src="../../../ui/jquery.effects.bounce.js"></script> |
| 16 | + <script type="text/javascript" src="../../../ui/jquery.effects.explode.js"></script> |
| 17 | + <!-- |
| 18 | + <script type="text/javascript" src="http://jqueryui.com/themeroller/themeswitchertool/"></script> |
| 19 | + --> |
| 20 | + <script type="text/javascript"> |
| 21 | + $(function() { |
| 22 | + var animations = [{}, { |
| 23 | + show: { |
| 24 | + effect: "slideDown" |
| 25 | + }, |
| 26 | + hide: { |
| 27 | + effect: "slideUp" |
| 28 | + } |
| 29 | + }, { |
| 30 | + show: { |
| 31 | + effect: "explode" |
| 32 | + }, |
| 33 | + hide: { |
| 34 | + effect: "explode" |
| 35 | + } |
| 36 | + }, { |
| 37 | + show: { |
| 38 | + effect: "bounce" |
| 39 | + }, |
| 40 | + hide: { |
| 41 | + effect: "blind" |
| 42 | + } |
| 43 | + }]; |
| 44 | + $.each(animations, function(index, animation) { |
| 45 | + var text = JSON.stringify(animation); |
| 46 | + $("<span></span>").attr("title", text).text(text).tooltip({ |
| 47 | + show: animation.show, |
| 48 | + hide: animation.hide |
| 49 | + }).wrap("<li></li>").parent().appendTo("ul"); |
| 50 | + }); |
| 51 | + }); |
| 52 | + </script> |
| 53 | +</head> |
| 54 | +<body> |
| 55 | + |
| 56 | +<div style="width:300px"> |
| 57 | + <ul class="ui-widget ui-widget-header"> |
| 58 | + </ul> |
| 59 | +</div> |
| 60 | +</body> |
| 61 | +</html> |
0 commit comments