Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>jQuery Bug</title>
- <link type="text/css" href="http://ui.jquery.com/applications/themes/base/ui.all.css" rel="stylesheet" />
- <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
- <script type="text/javascript" src="http://ui.jquery.com/applications/ui/ui.core.js"></script>
- <script type="text/javascript" src="http://ui.jquery.com/applications/ui/ui.dialog.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- mywindow();
- });
- function mywindow() {
- $("#dialog").dialog("destroy");
- $("#dialog").dialog({
- autoOpen: true,
- modal: true,
- draggable: true,
- resizable: true,
- position: 'center',
- overlay: {
- backgroundColor: '#000000',
- opacity: 0.5
- },
- });
- return false;
- }
- </script>
- </head>
- <body>
- <div id="dialog">Testing</div>
- </body>
- <a onClick="return mywindow();">Click Here</a>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement