[24245] | 1 | <!doctype html>
|
---|
| 2 | <html lang="en">
|
---|
| 3 | <head>
|
---|
| 4 | <title>jQuery UI Dialog - Basic modal</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 | <link type="text/css" href="../demos.css" rel="stylesheet" />
|
---|
| 16 | <script type="text/javascript">
|
---|
| 17 | $(function() {
|
---|
| 18 | // a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
|
---|
| 19 | $("#dialog").dialog("destroy");
|
---|
| 20 |
|
---|
| 21 | $("#dialog-modal").dialog({
|
---|
| 22 | height: 140,
|
---|
| 23 | modal: true
|
---|
| 24 | });
|
---|
| 25 | });
|
---|
| 26 | </script>
|
---|
| 27 | </head>
|
---|
| 28 | <body>
|
---|
| 29 |
|
---|
| 30 |
|
---|
| 31 | <div class="demo">
|
---|
| 32 |
|
---|
| 33 | <div id="dialog-modal" title="Basic modal dialog">
|
---|
| 34 | <p>Adding the modal overlay screen makes the dialog look more prominent because it dims out the page content.</p>
|
---|
| 35 | </div>
|
---|
| 36 |
|
---|
| 37 | <!-- Sample page content to illustrate the layering of the dialog -->
|
---|
| 38 | <div class="hiddenInViewSource" style="padding:20px;">
|
---|
| 39 | <p>Sed vel diam id libero <a href="http://example.com">rutrum convallis</a>. Donec aliquet leo vel magna. Phasellus rhoncus faucibus ante. Etiam bibendum, enim faucibus aliquet rhoncus, arcu felis ultricies neque, sit amet auctor elit eros a lectus.</p>
|
---|
| 40 | <form>
|
---|
| 41 | <input value="text input" /><br />
|
---|
| 42 | <input type="checkbox" />checkbox<br />
|
---|
| 43 | <input type="radio" />radio<br />
|
---|
| 44 | <select>
|
---|
| 45 | <option>select</option>
|
---|
| 46 | </select><br /><br />
|
---|
| 47 | <textarea>textarea</textarea><br />
|
---|
| 48 | </form>
|
---|
| 49 | </div><!-- End sample page content -->
|
---|
| 50 |
|
---|
| 51 | </div><!-- End demo -->
|
---|
| 52 |
|
---|
| 53 | <div class="demo-description">
|
---|
| 54 |
|
---|
| 55 | <p>A modal dialog prevents the user from interacting with the rest of the page until it is closed. To add a semi-transparent layer that dims out the page content behind the dialog, set the background color and opacity of the <code>overlay</code> option.</p>
|
---|
| 56 |
|
---|
| 57 | </div><!-- End demo-description -->
|
---|
| 58 |
|
---|
| 59 | </body>
|
---|
| 60 | </html>
|
---|