⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 03c.htm

📁 javascript94个网页特效下载
💻 HTM
字号:
<html>
<head>
<title>按指定格式打开网址</title>
<meta http-equiv="目录类型" content="文本/html; 字符集=gb2312">
<style type="text/css">
<!--
a{font-style:normal;text-decoration:none;color:white}
a:hover {BACKGROUND:red;font-style:normal;text-decoration:none;color:yellow}
a:active {font-style:normal;text-decoration:none;color:yellow;}
.white {  color: #FFFFFF}
table {  font-size: 9pt}
-->
</style>
<link rel="stylesheet" href="style.css">
</head>

<body bgcolor="#009900" topmargin="0" leftmargin="0">
<form name="form">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr bgcolor="#009900"> 
      <td colspan="3" height="18">&nbsp; </td>
    </tr>
    <tr> 
      <td bgcolor="#009900" width="18"></td>
      <td align="center" bgcolor="#FFFFFF" valign="top"> <br>
        <table width="57%" border="0" cellspacing="0" cellpadding="0" height="355">
          <tr> 
            <td rowspan="2" width="16" valign="top"> 
              <table width="100%" border="0" cellspacing="0" cellpadding="0" class="white" style="FONT-SIZE: 11pt;">
                <tr bgcolor="#336699" bordercolor="#336699"> 
                  <td style="BORDER-RIGHT: double; BORDER-TOP: double;  BORDER-LEFT: double; BORDER-BOTTOM: double;" height="70"><strong><a href="03.htm">演<br>
                    <br>
                    示</a></strong></td>
                </tr>
                <tr bordercolor="#009900" bgcolor="#009900"> 
                  <td style="BORDER-RIGHT: double; BORDER-TOP: double; BORDER-LEFT: double; BORDER-BOTTOM: double" height="70"><strong><a href="03c.htm">源<br>
                    代<br>
                    码</a></strong></td>
                </tr>
              </table>
            </td>
            <td rowspan="2" width="8" bgcolor="#009900">&nbsp;</td>
            <td align="center" style="BORDER-RIGHT: double; BORDER-TOP: double; FONT-SIZE: 12pt; BORDER-LEFT: double; BORDER-BOTTOM: double" bordercolor="#009900" valign="top"> 
              <b> </b><br>
              <b>按指定格式打开网址</b> 
              <hr width="92%" size="1" align="center">
              <table  cellspacing="0" cellpadding="0" width="81%">
                <tr> 
                  <td height="25" colspan="2">注释:放在&lt;body&gt;与&lt;/body&gt;之间</td>
                </tr>
                <tr> 
                  <td colspan="2"> 
                    <textarea name="Code" onFocus="this.select()" onMouseOver="this.focus()" cols="50" wrap="VIRTUAL" style="BACKGROUND-COLOR: #009900;" class="pt9" rows="16">&lt;script language=&quot;JAVASCRIPT&quot;&gt;
&lt;!--  hide        

function customize(form) {    
        var address = document.form1.url.value;   
        var op_tool  = (document.form1.tool.checked== true)  ? 1 : 0;    
        var op_loc_box  = (document.form1.loc_box.checked == true)  ? 1 : 0;    
        var op_dir  = (document.form1.dir.checked == true)  ? 1 : 0;    
        var op_stat  = (document.form1.stat.checked == true)  ? 1 : 0;    
        var op_menu  = (document.form1.menu.checked == true)  ? 1 : 0;    
        var op_scroll  = (document.form1.scroll.checked == true)  ? 1 : 0;    
        var op_resize  = (document.form1.resize.checked == true)  ? 1 : 0;    
        var op_wid  = document.form1.wid.value;   
        var op_heigh = document.form1.heigh.value;                 
        var option = &quot;toolbar=&quot;      + op_tool +                &quot;,location=&quot;    + op_loc_box +                &quot;,directories=&quot; 
        + op_dir +                &quot;,status=&quot;      + op_stat 
        +                &quot;,menubar=&quot;     + op_menu +                &quot;,scrollbars=&quot;  

        + op_scroll +                &quot;,resizeable=&quot;  + op_resize 
        +                &quot;,width=&quot;       
        + op_wid +                &quot;,height=&quot;      + op_heigh;
        var win3 = window.open(&quot;&quot;, &quot;what_I_want&quot;, option);  
        var win4 = window.open(address, &quot;what_I_want&quot;);
}
function clear(form){ 
        document.form1.wid.value=&quot;&quot;; 
        document.form1.heigh.value=&quot;&quot;;
}
// done hiding --&gt;
&lt;/script&gt;
&lt;form name=&quot;form1&quot; action=&quot;javascript:&quot; method=&quot;POST&quot;&gt;
                    &lt;div align=&quot;left&quot;&gt; 
                      &lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
                        &lt;tr align=&quot;center&quot;&gt; 
                          &lt;td colspan=&quot;4&quot; height=&quot;35&quot;&gt; URL: 
                            &lt;input type=&quot;text&quot; size=&quot;40&quot; name=&quot;url&quot; value=&quot;http://&quot;&gt;
                          &lt;/td&gt;
                        &lt;/tr&gt;
                        &lt;tr align=&quot;center&quot;&gt; 
                          &lt;td width=&quot;25%&quot; height=&quot;25&quot;&gt; 
                            &lt;input
type=&quot;checkbox&quot; name=&quot;tool&quot; value=&quot;ON&quot;&gt;
                            : 快捷键&lt;/td&gt;
                          &lt;td width=&quot;25%&quot; height=&quot;25&quot;&gt; 
                            &lt;input type=&quot;checkbox&quot; name=&quot;loc_box&quot; value=&quot;ON&quot;&gt;
                            : 地址栏 &lt;/td&gt;
                          &lt;td width=&quot;25%&quot; height=&quot;25&quot;&gt; 
                            &lt;input
type=&quot;checkbox&quot; name=&quot;dir&quot; value=&quot;ON&quot;&gt;
                            : 链 接 &lt;/td&gt;
                          &lt;td width=&quot;25%&quot; height=&quot;25&quot;&gt; 
                            &lt;input type=&quot;checkbox&quot; name=&quot;stat&quot; value=&quot;ON&quot;&gt;
                            : 状态栏&lt;/td&gt;
                        &lt;/tr&gt;
                        &lt;tr align=&quot;center&quot;&gt; 
                          &lt;td width=&quot;25%&quot; height=&quot;25&quot;&gt; 
                            &lt;input
type=&quot;checkbox&quot; name=&quot;resize&quot; value=&quot;ON&quot;&gt;
                            : 调大小 &lt;/td&gt;
                          &lt;td width=&quot;25%&quot; height=&quot;25&quot;&gt; 
                            &lt;input type=&quot;checkbox&quot; name=&quot;scroll&quot; value=&quot;ON&quot;&gt;
                            : 滚动条&lt;/td&gt;
                          &lt;td width=&quot;25%&quot; height=&quot;25&quot;&gt; 
                            &lt;input
type=&quot;checkbox&quot; name=&quot;menu&quot; value=&quot;ON&quot;&gt;
                            : 菜 单 &lt;/td&gt;
                          &lt;td width=&quot;25%&quot; height=&quot;25&quot;&gt;&amp;nbsp;&lt;/td&gt;
                        &lt;/tr&gt;
                        &lt;tr align=&quot;center&quot;&gt; 
                          &lt;td colspan=&quot;2&quot; height=&quot;35&quot;&gt; 
                            &lt;input type=&quot;text&quot; name=&quot;wid&quot;
size=&quot;14&quot;&gt;
                            : 宽&lt;/td&gt;
                          &lt;td colspan=&quot;2&quot; height=&quot;25&quot;&gt; 
                            &lt;input type=&quot;text&quot; name=&quot;heigh&quot; size=&quot;14&quot;&gt;
                            : 高&lt;/td&gt;
                        &lt;/tr&gt;
                        &lt;tr align=&quot;center&quot;&gt; 
                          &lt;td colspan=&quot;4&quot; height=&quot;25&quot;&gt; 
                            &lt;input
type=&quot;button&quot; size=&quot;10&quot; value=&quot;确认&quot; onClick=&quot;customize(this.form)&quot; name=&quot;button&quot;&gt;
                            &lt;input type=&quot;reset&quot;
size=&quot;10&quot; value=&quot;重填&quot; onClick=&quot;clear(this.form)&quot; name=&quot;reset&quot;&gt;
                          &lt;/td&gt;
                        &lt;/tr&gt;
                      &lt;/table&gt;
                    &lt;/div&gt;
                  &lt;/form&gt;</textarea>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
          <tr> 
            <td height="20" class="white" bgcolor="#009900">当前位置:<a href="../../index.htm">首 
              页</a>→<a href="../index.htm">JavaScript</a>→<a href="index.htm#3">窗口特效</a>→按指定格式打开网址</td>
          </tr>
        </table>
        <br>
      </td>
      <td bgcolor="#009900" width="18"></td>
    </tr>
    <tr bgcolor="#009900"> 
      <td></td>
      <td align="center" height="35"> <font color="#FFFFFF">··万旭网站工作室 设计发布··</font> 
      </td>
      <td>&nbsp;</td>
    </tr>
  </table>
</form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -