自由生成窗口代码

 

  1. <html>
  2. <head>
  3. <meta http-equiv=“Content-Type” content=“text/html; charset=gb2312”>
  4. <title>URL</title>
  5. </head>
  6. <body>
  7. <script language=“JAVASCRIPT”>
  8. <!–  hide
  9. function customize(form) {
  10.         var address = document.form1.url.value;
  11.         var op_tool  = (document.form1.tool.checked== true)  ? 1 : 0;
  12.         var op_loc_box  = (document.form1.loc_box.checked == true)  ? 1 : 0;
  13.         var op_dir  = (document.form1.dir.checked == true)  ? 1 : 0;
  14.         var op_stat  = (document.form1.stat.checked == true)  ? 1 : 0;
  15.         var op_menu  = (document.form1.menu.checked == true)  ? 1 : 0;
  16.         var op_scroll  = (document.form1.scroll.checked == true)  ? 1 : 0;
  17.         var op_resize  = (document.form1.resize.checked == true)  ? 1 : 0;
  18.         var op_wid  = document.form1.wid.value;
  19.         var op_heigh = document.form1.heigh.value;
  20.         var option = “toolbar=”      + op_tool +                “,location=”    + op_loc_box +                “,directories=”
  21.         + op_dir +                “,status=”      + op_stat
  22.         +                “,menubar=”     + op_menu +                “,scrollbars=”
  23.         + op_scroll +                “,resizeable=”  + op_resize
  24.         +                “,width=”
  25.         + op_wid +                “,height=”      + op_heigh;
  26.         var win3 = window.open(“”“what_I_want”, option);
  27.         var win4 = window.open(address, “what_I_want”);
  28. }
  29. function clear(form){
  30.         document.form1.wid.value=“”;
  31.         document.form1.heigh.value=“”;
  32. }
  33. // done hiding –>
  34. </script>
  35.  <form name=“form1” action=“javascript:” method=“POST”>
  36.                     <div align=“left”>
  37.                       <table width=“100%” border=“0” cellspacing=“0” cellpadding=“0”>
  38.                         <tr align=“center”>
  39.                           <td colspan=“4” height=“35”> URL:
  40.                             <input type=“text” size=“40” name=“url” value=“http://”>
  41.                           </td>
  42.                         </tr>
  43.                         <tr align=“center”>
  44.                           <td width=“25%” height=“25”>
  45.                             <input
  46. type=“checkbox” name=“tool” value=“ON”>
  47.                             : 快捷键</td>
  48.                           <td width=“25%” height=“25”>
  49.                             <input type=“checkbox” name=“loc_box” value=“ON”>
  50.                             : 地址栏 </td>
  51.                           <td width=“25%” height=“25”>
  52.                             <input
  53. type=“checkbox” name=“dir” value=“ON”>
  54.                             : 链 接 </td>
  55.                           <td width=“25%” height=“25”>
  56.                             <input type=“checkbox” name=“stat” value=“ON”>
  57.                             : 状态栏</td>
  58.                         </tr>
  59.                         <tr align=“center”>
  60.                           <td width=“25%” height=“25”>
  61.                             <input
  62. type=“checkbox” name=“resize” value=“ON”>
  63.                             : 调大小 </td>
  64.                           <td width=“25%” height=“25”>
  65.                             <input type=“checkbox” name=“scroll” value=“ON”>
  66.                             : 滚动条</td>
  67.                           <td width=“25%” height=“25”>
  68.                             <input
  69. type=“checkbox” name=“menu” value=“ON”>
  70.                             : 菜 单 </td>
  71.                           <td width=“25%” height=“25”> </td>
  72.                         </tr>
  73.                         <tr align=“center”>
  74.                           <td colspan=“2” height=“35”>
  75.                             <input type=“text” name=“wid”
  76. size=“14”>
  77.                             : 宽</td>
  78.                           <td colspan=“2” height=“25”>
  79.                             <input type=“text” name=“heigh” size=“14”>
  80.                             : 高</td>
  81.                         </tr>
  82.                         <tr align=“center”>
  83.                           <td colspan=“4” height=“25”>
  84.                             <input
  85. type=“button” size=“10” value=“确定” onClick=“customize(this.form)” name=“button”>
  86.                             <input type=“reset”
  87. size=“10” value=“重置” onClick=“clear(this.form)” name=“reset”>
  88.                           </td>
  89.                         </tr>
  90.                       </table>
  91.                     </div>
  92.                   </form>
  93. </body>
  94. </html>
© 版权声明
THE END
喜欢就支持一下吧
点赞0分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容