7
|
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.10.2.js"></script>
|
|
8 <script src="../../ui/jquery.ui.core.js"></script>
|
|
9 <script src="../../ui/jquery.ui.widget.js"></script>
|
|
10 <script src="../../ui/jquery.ui.mouse.js"></script>
|
|
11 <script src="../../ui/jquery.ui.draggable.js"></script>
|
|
12 <script src="../../ui/jquery.ui.position.js"></script>
|
|
13 <script src="../../ui/jquery.ui.resizable.js"></script>
|
|
14 <script src="../../ui/jquery.ui.button.js"></script>
|
|
15 <script src="../../ui/jquery.ui.dialog.js"></script>
|
|
16 <script src="../../ui/jquery.ui.effect.js"></script>
|
|
17 <script src="../../ui/jquery.ui.effect-blind.js"></script>
|
|
18 <script src="../../ui/jquery.ui.effect-explode.js"></script>
|
|
19 <link rel="stylesheet" href="../demos.css">
|
|
20 <script>
|
|
21 $(function() {
|
|
22 $( "#dialog" ).dialog({
|
|
23 autoOpen: false,
|
|
24 show: {
|
|
25 effect: "blind",
|
|
26 duration: 1000
|
|
27 },
|
|
28 hide: {
|
|
29 effect: "explode",
|
|
30 duration: 1000
|
|
31 }
|
|
32 });
|
|
33
|
|
34 $( "#opener" ).click(function() {
|
|
35 $( "#dialog" ).dialog( "open" );
|
|
36 });
|
|
37 });
|
|
38 </script>
|
|
39 </head>
|
|
40 <body>
|
|
41
|
|
42 <div id="dialog" title="Basic dialog">
|
|
43 <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>
|
|
44 </div>
|
|
45
|
|
46 <button id="opener">Open Dialog</button>
|
|
47
|
|
48 <div class="demo-description">
|
|
49 <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>
|
|
50 </div>
|
|
51 </body>
|
|
52 </html>
|