comparison jquery-ui/development-bundle/demos/dialog/animated.html @ 0:b2e4605f20b2

beta version
author dwinter
date Thu, 30 Jun 2011 09:07:49 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:b2e4605f20b2
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="utf-8">
5 <title>jQuery UI Dialog - Animation</title>
6 <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
7 <script src="../../jquery-1.5.1.js"></script>
8 <script src="../../external/jquery.bgiframe-2.1.2.js"></script>
9 <script src="../../ui/jquery.ui.core.js"></script>
10 <script src="../../ui/jquery.ui.widget.js"></script>
11 <script src="../../ui/jquery.ui.mouse.js"></script>
12 <script src="../../ui/jquery.ui.draggable.js"></script>
13 <script src="../../ui/jquery.ui.position.js"></script>
14 <script src="../../ui/jquery.ui.resizable.js"></script>
15 <script src="../../ui/jquery.ui.dialog.js"></script>
16 <script src="../../ui/jquery.effects.core.js"></script>
17 <script src="../../ui/jquery.effects.blind.js"></script>
18 <script src="../../ui/jquery.effects.explode.js"></script>
19 <link rel="stylesheet" href="../demos.css">
20 <script>
21 // increase the default animation speed to exaggerate the effect
22 $.fx.speeds._default = 1000;
23 $(function() {
24 $( "#dialog" ).dialog({
25 autoOpen: false,
26 show: "blind",
27 hide: "explode"
28 });
29
30 $( "#opener" ).click(function() {
31 $( "#dialog" ).dialog( "open" );
32 return false;
33 });
34 });
35 </script>
36 </head>
37 <body>
38
39 <div class="demo">
40
41 <div id="dialog" title="Basic dialog">
42 <p>This is an animated dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
43 </div>
44
45 <button id="opener">Open Dialog</button>
46
47 </div><!-- End demo -->
48
49
50
51 <div class="demo-description">
52 <p>Dialogs may be animated by specifying an effect for the show and/or hide properties. You must include the individual effects file for any effects you would like to use.</p>
53 </div><!-- End demo-description -->
54
55 </body>
56 </html>