1 | <!doctype html>
|
---|
2 | <html lang="en">
|
---|
3 | <head>
|
---|
4 | <title>jQuery UI Dialog - Animation</title>
|
---|
5 | <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
|
---|
6 | <script type="text/javascript" src="../../jquery-1.4.1.js"></script>
|
---|
7 | <script type="text/javascript" src="../../external/jquery.bgiframe-2.1.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.mouse.js"></script>
|
---|
11 | <script type="text/javascript" src="../../ui/jquery.ui.draggable.js"></script>
|
---|
12 | <script type="text/javascript" src="../../ui/jquery.ui.position.js"></script>
|
---|
13 | <script type="text/javascript" src="../../ui/jquery.ui.resizable.js"></script>
|
---|
14 | <script type="text/javascript" src="../../ui/jquery.ui.dialog.js"></script>
|
---|
15 | <script type="text/javascript" src="../../ui/jquery.effects.core.js"></script>
|
---|
16 | <script type="text/javascript" src="../../ui/jquery.effects.blind.js"></script>
|
---|
17 | <script type="text/javascript" src="../../ui/jquery.effects.explode.js"></script>
|
---|
18 | <link type="text/css" href="../demos.css" rel="stylesheet" />
|
---|
19 | <script type="text/javascript">
|
---|
20 | // increase the default animation speed to exaggerate the effect
|
---|
21 | $.fx.speeds._default = 1000;
|
---|
22 | $(function() {
|
---|
23 | $('#dialog').dialog({
|
---|
24 | autoOpen: false,
|
---|
25 | show: 'blind',
|
---|
26 | hide: 'explode'
|
---|
27 | });
|
---|
28 |
|
---|
29 | $('#opener').click(function() {
|
---|
30 | $('#dialog').dialog('open');
|
---|
31 | return false;
|
---|
32 | });
|
---|
33 | });
|
---|
34 | </script>
|
---|
35 | </head>
|
---|
36 | <body>
|
---|
37 |
|
---|
38 | <div class="demo">
|
---|
39 |
|
---|
40 | <div id="dialog" title="Basic dialog">
|
---|
41 | <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>
|
---|
42 | </div>
|
---|
43 |
|
---|
44 | <button id="opener">Open Dialog</button>
|
---|
45 |
|
---|
46 | </div><!-- End demo -->
|
---|
47 |
|
---|
48 | <div class="demo-description">
|
---|
49 |
|
---|
50 | <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>
|
---|
51 |
|
---|
52 | </div><!-- End demo-description -->
|
---|
53 |
|
---|
54 | </body>
|
---|
55 | </html>
|
---|