SHARE
TWEET

iFeghali

a guest Jan 12th, 2009 294 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2.     <head>
  3.         <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  4.         <title>jQuery Bug</title>
  5.         <link type="text/css" href="http://ui.jquery.com/applications/themes/base/ui.all.css" rel="stylesheet" />
  6.         <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
  7.         <script type="text/javascript" src="http://ui.jquery.com/applications/ui/ui.core.js"></script>
  8.         <script type="text/javascript" src="http://ui.jquery.com/applications/ui/ui.dialog.js"></script>
  9.  
  10.         <script type="text/javascript">
  11.         $(document).ready(function() {
  12.             mywindow();
  13.         });
  14.         function mywindow() {
  15.             $("#dialog").dialog("destroy");
  16.             $("#dialog").dialog({
  17.                 autoOpen: true,
  18.                 modal: true,
  19.                 draggable: true,
  20.                 resizable: true,
  21.                 position: 'center',
  22.                 overlay: {
  23.                     backgroundColor: '#000000',
  24.                     opacity: 0.5
  25.                 },
  26.                 });
  27.  
  28.                 return false;
  29.         }
  30.         </script>
  31.     </head>
  32.  
  33.     <body>
  34.         <div id="dialog">Testing</div>
  35.     </body>
  36.     <a onClick="return mywindow();">Click Here</a>
  37.  
  38. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top