1 | <html> |
---|
2 | <head> |
---|
3 | <link type="text/css" href="./jquery-ui-1.7.2.custom.css" rel="stylesheet" /> |
---|
4 | <script type="text/javascript" src="./jquery-1.4.1.js"></script> |
---|
5 | <script type="text/javascript" src="./jquery-ui-1.7.2.custom.min.js"></script> |
---|
6 | <script type="text/javascript"> |
---|
7 | $(function(){ |
---|
8 | $('#example').dialog({ |
---|
9 | autoOpen: false |
---|
10 | }); |
---|
11 | |
---|
12 | $('button').click(function(){ |
---|
13 | $('#example').dialog('open'); |
---|
14 | }); |
---|
15 | }); |
---|
16 | </script> |
---|
17 | </head> |
---|
18 | <body> |
---|
19 | <div id="example"> |
---|
20 | <div style="height: 300px;">test</div> |
---|
21 | </div> |
---|
22 | <button>click me</button> |
---|
23 | </body> |
---|
24 | </html> |
---|