test.html 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  5. <title>可拖拽移动漂亮的zDialog弹出层代码</title>
  6. <style>
  7. body { background: #ffffff; color: #444;font-size:12px; }
  8. a { color: #07c; text-decoration: none; border: 0; background-color: transparent; }
  9. body, div, q, iframe, form, h5 { margin: 0; padding: 0; }
  10. img, fieldset { border: none 0; }
  11. body, td, textarea { word-break: break-all; word-wrap: break-word; line-height:1.6; }
  12. body, input, textarea, select, button { margin: 0; font-size: 12px; font-family: Tahoma, SimSun, sans-serif; }
  13. div, p, table, th, td { font-size:1em; font-family:inherit; line-height:inherit; }
  14. h5 { font-size:12px; }
  15. ol li,ul li{ margin-bottom:0.5em;}
  16. pre, code { font-family: "Courier New", Courier, monospace; word-wrap:break-word; line-height:1.4; font-size:12px;}
  17. pre{background:#f6f6f6; border:#eee solid 1px; margin:1em 0.5em; padding:0.5em 1em;}
  18. #content { padding-left:50px; padding-right:50px; }
  19. #content h2 { font-size:20px; color:#069; padding-top:8px; margin-bottom:8px; }
  20. #content h3 { margin:8px 0; font-size:14px; COLOR:#693; }
  21. #content h4 { margin:8px 0; font-size:16px; COLOR:#690; }
  22. #content div.item { margin-top:10px; margin-bottom:10px; border:#eee solid 4px; padding:10px; }
  23. hr { clear:both; margin:7px 0; +margin: 0;
  24. border:0 none; font-size: 1px; line-height:1px; color: #069; background-color:#069; height: 1px; }
  25. .infobar { background:#fff9e3; border:1px solid #fadc80; color:#743e04; }
  26. .buttonStyle{width:64px;height:22px;line-height:22px;color:#369;text-align:center;background:url(images/buticon.gif) no-repeat left top;border:0;font-size:12px;}
  27. .buttonStyle:hover{background:url(images/buticon.gif) no-repeat left -23px;}
  28. </style>
  29. <script type="text/javascript" src="zDrag.js"></script>
  30. <script type="text/javascript" src="zDialog.js"></script>
  31. <script type="text/javascript">
  32. function fun1()
  33. {
  34. }
  35. function fun2()
  36. {
  37. parentDialog.close();
  38. }
  39. function fun3()
  40. {
  41. var diag = new Dialog();
  42. diag.Width = 900;
  43. diag.Height = 400;
  44. diag.Title = "内容页为外部连接的窗口";
  45. diag.URL = "http://www.baidu.com/";
  46. diag.show();
  47. }
  48. </script>
  49. </head>
  50. <body><div id="forlogin">
  51. <table width="100%" border="0" align="center" cellpadding="4" cellspacing="4" bordercolor="#666666">
  52. <tr>
  53. <td colspan="2" bgcolor="#eeeeee">这儿是弹出窗口中的表单</td>
  54. </tr>
  55. <tr>
  56. <td width="150" align="right">你的QQ:</td>
  57. <td><input type="text" id="qq" /></td>
  58. </tr>
  59. <tr>
  60. <td width="150" align="right">你的E-mail:</td>
  61. <td><input type="text" id="mail" /></td>
  62. </tr>
  63. <tr>
  64. <td align="right">你从哪儿获知本程序的?</td>
  65. <td><input type="text" id="track" /></td>
  66. </tr>
  67. <tr>
  68. <td colspan="2" align="left" style="padding-left:160px;"><input type="button" onClick="fun3()" value="再弹" class="buttonStyle" /> <input onClick="fun2()" class="buttonStyle" type="button" value="关闭" /></td>
  69. </tr>
  70. </table>
  71. </div></body>
  72. </html>