| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|---|
| 2 | "http://www.w3.org/TR/html4/loose.dtd">
|
|---|
| 3 | <html>
|
|---|
| 4 | <head>
|
|---|
| 5 | <script src="http://code.jquery.com/jquery-latest.js"></script>
|
|---|
| 6 |
|
|---|
| 7 | <script>
|
|---|
| 8 | $(document).ready(function(){
|
|---|
| 9 | var options = {
|
|---|
| 10 | autoOpen: false,
|
|---|
| 11 | modal: true,
|
|---|
| 12 | height: 200,
|
|---|
| 13 | width: 200,
|
|---|
| 14 | overlay: {backgroundColor: "#666",opacity:0.65}}
|
|---|
| 15 | $("#example").dialog(options);
|
|---|
| 16 | $("#selected").click(function (e){
|
|---|
| 17 | $("#example").dialog("open");
|
|---|
| 18 | });
|
|---|
| 19 | });
|
|---|
| 20 | </script>
|
|---|
| 21 |
|
|---|
| 22 | </head>
|
|---|
| 23 | <body>
|
|---|
| 24 | <link rel="stylesheet" href="http://dev.jquery.com/view/trunk/themes/flora/flora.all.css" type="text/css" media="screen" title="Flora (Default)">
|
|---|
| 25 | <script type="text/javascript" src="http://dev.jquery.com/view/tags/ui/1.5b2/ui.base.js"></script>
|
|---|
| 26 | <script type="text/javascript" src="http://dev.jquery.com/view/tags/ui/1.5b2/ui.dialog.js"></script>
|
|---|
| 27 | <script type="text/javascript" src="http://dev.jquery.com/view/tags/ui/1.5b2/ui.resizable.js"></script>
|
|---|
| 28 | <script type="text/javascript" src="http://dev.jquery.com/view/tags/ui/1.5b2/ui.draggable.js"></script>
|
|---|
| 29 |
|
|---|
| 30 | <div>
|
|---|
| 31 | <input id="all" type="radio" checked="checked" value="true" onclick="this.blur();" name="mygroup" />
|
|---|
| 32 | <span style="margin-left: 5px;">First option </span>
|
|---|
| 33 | <br/>
|
|---|
| 34 | <input id="selected" type="radio" value="false" onclick="this.blur();" name="mygroup" />
|
|---|
| 35 | <span style="margin-left: 5px;">Second option</span>
|
|---|
| 36 | </div>
|
|---|
| 37 |
|
|---|
| 38 | <div id="example" class="flora" title="This is my title">I'm in a dialog!</div>
|
|---|
| 39 | </body>
|
|---|
| 40 | </html>
|
|---|