生成类似于弹出窗口的页面

来源:互联网 发布:纸箱外包装设计软件 编辑:程序博客网 时间:2024/06/09 19:52

<head>
<%@ include file="header.jsp" %>
  <link rel="stylesheet" type="text/css" href="../../../_COMMON/archive/LPstyle.css" orteus="true">
 
  <style type="text/css">
    #button {
      font-size: 12pt;
      font-family: "MS ゴシック";
      text-align: center;
    }
    input {
      font-family: "MS ゴシック";
    }
  </style>
  <script type="text/javascript">
    <!--
      window.onload = function() {
        if (window.name == "") {
          // 設定window名
          //
          var date = new Date();
          var windowName = date.getYear().toString()
                         + date.getMonth().toString()
                         + date.getDate().toString()
                         + date.getHours().toString()
                         + date.getMinutes().toString()
                         + date.getSeconds().toString()
                         + date.getMilliseconds().toString();

          // 現在Page表示対象
          var url = self.location.href;

          // 指定window的parameter
          // 指定幅、高、address bar
          var status = "width=1024, height=768, menubar=no, toolbar=no,"
                     + "location=no, scrollbars=yes, status=no, resizable=yes";

          // 新window起動
          window.opener = window.open(url, windowName, status);

          // 親window関閉
          window.close();
        }
      }
    // -->
    </script>
</head>

原创粉丝点击