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

📄 day3_5.html

📁 JScript 用户指南 JavaScript 语言参考 内容 :JScript 函数 JScript 错误 JScript 方法 JScript 对象 JScript 语句 Scripting 运行
💻 HTML
字号:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312-80">
<style type="text/css">
<!--
a:link {  color: blue; text-decoration: none}
a:visited {  color: purple; text-decoration: none}
a:hover {  color: #CC0033; text-decoration: underline}
-->
</style>
<title>JavaScript教程</title>
</head>

<body topmargin="1" leftmargin="2">

<table border="0" width="591" cellspacing="0">
  <tr>
    <td bgcolor="#ffff99" width="451">JavaScript教程 - 第三课</td>
  </tr>
  <tr>
    <td bgcolor="#FF6600" width="451"><a href="mailto:thau@wired.com">Thau</a></td>
  </tr>
</table>
<div align="left">

<table border="0" width="630" cellspacing="0">
  <tr>
    <td width="458" valign="top" align="left"><strong><small><small><br>
    </small></small><font face="宋体" size="3">第五页:</font></strong><b><font size="2"
    face="宋体">Windows</font></b><strong><font size="3">特性</font></strong> <p><font
    face="宋体" size="3"><tt>window.open()中的第三个参数是你想要你的窗口表现的一组<br>
    特性。如果你不完全确定你的参数,则以用户浏览器的缺省值<br>
    替代。</tt></font></p>
    <p><font face="宋体" size="3">然而,如果你指定了一些特性参数,则窗口将以参数设定值规<br>
    定的出现。特性参数是以一组逗号分隔的序列出现的。</font></p>
    <font size="3"><p>例如,如果你是这么写的:</p>
    </font><p><big><font face="宋体">window.open(&quot;some_url&quot;,&quot;window_name&quot;,&quot;location,menubar&quot;);<br>
    </font></big></p>
    <p><font size="3">你将得到一个规定了<font face="宋体">URL</font>,窗口名及菜单条(文件,编辑条等等)<br>
    的窗口。注意别在字符串中加入任何空格,这将使得有些浏览<br>
    器出错。</font></p>
    <font size="3"><p>看一下另一个例子:</p>
    </font><p><big><font face="宋体">window.open(&quot;some_url&quot;,&quot;window_name&quot;,&quot;location,height=100,width=100&quot;);<br>
    <br>
    </font></big></p>
    <p><font size="3">这将打开一个高宽各为<font face="宋体">100</font>像素的窗口。再次请注意别在字符串<br>
    中加空格。</font></p>
    <font size="3"><p>这里是一组可以在字符串中引用的特性参数: </font><dl>
      <font size="3">
      <dt><font face="宋体"><tt>menubar</tt> </font>(菜单条)</dt>
      </font>
      <dd><font size="3">这是个在大多数软件应用中都引用的函数行。一般包括有<br>
        文件,编辑及其他一些条目。 </font></dd>
      <font size="3">
      <dt><font face="宋体"><tt>status</tt></font>(状态条) </dt>
      </font>
      <dd><font size="3">这是位于你的窗口下部的信息条。当你的鼠标移到一个链<br>
        接上时,链接的<font face="宋体">URL</font>就在这个状态条上出现。你可以将状<br>
        态条上显示的内容搬到一个滚动的<font face="宋体">marquee </font>中去。我不打<br>
        算为你做这个示例,如果你想知道怎样做,自己设法解决!</font></dd>
      <font size="3">
      <dt><font face="宋体"><tt>scrollbars</tt> </font>(滚动条)</dt>
      </font>
      <dd><font size="3">当需要时允许滚动条出现。 </font></dd>
      <font size="3">
      <dt><font face="宋体"><tt>resizable</tt> </font>(重调)</dt>
      </font>
      <dd><font size="3">当重调参数被列出,窗口将可被重调。注意它的拼法,我<br>
        就经常搞错。 </font></dd>
      <font size="3">
      <dt><font face="宋体"><tt>width</tt> </font>(宽度)</dt>
      </font>
      <dd><font size="3">以像素点表达的窗口宽。</font></dd>
      <font size="3">
      <dt><font face="宋体"><tt>height</tt></font>(高度) </dt>
      </font>
      <dd><font size="3">以像素点表达的窗口高。</font></dd>
      <font size="3">
      <dt><font face="宋体"><tt>toolbar</tt> </font>(工具条)</dt>
      <dd><font face="宋体"><tt>Home</tt> button, among others. <br>
        </font>浏览器工具条,包括后退,前进钮,停止钮,以及<font
        face="宋体">HOME</font>钮等等。</dd>
      <dt><font face="宋体"><tt>location</tt> </font>(定位区)</dt>
      </font>
      <dd><font size="3">你可以键入<font face="宋体">URL </font>的浏览器文本区。</font></dd>
      <font size="3">
      <dt><font face="宋体"><tt>directories</tt> </font>(指示区)</dt>
      </font>
      <dd><font size="3">如<font face="宋体">Netscape</font>浏览器中所在的<font
        face="宋体">&quot;What's new,&quot; &quot;What's cool,&quot;</font>等等。</font></dd>
    </dl>
    <font size="3"><p>这里是一些<a href="javascript:if(confirm('http://www.pchome.net/ch/tur/pstext/teacher/javascript/tutorial3_page5.html  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?'))window.location='http://www.pchome.net/ch/tur/pstext/teacher/javascript/tutorial3_page5.html#'" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/tutorial3_page5.html#">不同类型窗口</a>的示例。</p>
    </font><p><font face="宋体" size="3">一旦你搞懂了这些例子,你就可以在你的一些窗口中实现它了。<br>
    现在开始学窗口的<a href="day3_6.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_6.html">具体内容</a></font></p>
    <p align="left"><font face="宋体" size="3" color="#000000"><strong>JavaScript教程</strong></font><font
    color="#FF0000" face="宋体" size="3"><br>
    </font><font size="3" color="#FF0000">第</font><font color="#FF0000" face="宋体"
    size="3">一</font><font size="3" color="#FF0000">页</font><font size="2" face="宋体"> </font><a
    href="day3_5.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_5.html"><font size="3">第三天课程简介</font></a><font size="2"><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">二</font><font size="3" color="#FF0000">页</font><font size="2"
    face="宋体"> </font><a href="day3_2.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_2.html"><font size="3">窗口操作介绍</font></a><font
    size="2"><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">三</font><font size="3" color="#FF0000">页</font><font size="2"
    face="宋体"> </font><a href="day3_3.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_3.html"><font size="3"><strong>Javascript</strong>中的窗口操作</font></a><font
    size="2"><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">四</font><font size="3" color="#FF0000">页</font><a href="day3_4.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_4.html"> <font
    size="2" face="宋体"><b>JavaScript</b></font><font size="3">中的窗口操作举例</font></a><font
    size="2"><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">五</font><font size="3" color="#FF0000">页</font><font size="2"
    face="宋体"> <b>Windows</b></font><font size="3">特性</font><font size="2"><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">六</font><font size="3" color="#FF0000">页</font><a href="day3_6.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_6.html"> <font
    size="2" face="宋体"><b>JavaScript</b></font><font size="3">文件目标模块</font></a><font
    size="2"><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">七</font><font size="3" color="#FF0000">页</font><font size="2"
    face="宋体"> </font><a href="day3_7.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_7.html"><font size="3">状态条的操作</font></a><font
    size="2"><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">八</font><font size="3" color="#FF0000">页</font><font size="2"
    face="宋体"> </font><a href="day3_8.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_8.html"><font size="3">窗口间的交流</font></a><font
    size="2"><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">九</font><font size="3" color="#FF0000">页</font><font size="2"
    face="宋体"> </font><a href="day3_9.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_9.html"><font size="3">再谈</font><font size="2"
    face="宋体"><b>JavaScript&nbsp; DOM</b></a><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">十</font><font size="3" color="#FF0000">页</font><font size="2"
    face="宋体"> </font><a href="day3_10.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_10.html"><font size="3">窗口的其它特性</font></a><font
    size="2"><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">十一</font><font size="3" color="#FF0000">页</font><font size="2"
    face="宋体"> </font><a href="day3_11.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_11.html"><font size="3">再谈</font><font size="2"
    face="宋体"><b>Window</b></font><font size="3">及</font><font size="2" face="宋体"><b>Frame</b></font><font
    size="3">树杈结构</font></a><font size="2"><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">十二</font><font size="3" color="#FF0000">页</font><font size="2"
    face="宋体"> </font><a href="day3_12.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_12.html"><font size="3">自己动手操作</font></a><font
    size="2"><br>
    </font><font size="3" color="#FF0000">第</font><font face="宋体" size="3"
    color="#FF0000">十三</font><font size="3" color="#FF0000">页</font><font size="2"
    face="宋体"> </font><a href="day3_13.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_13.html"><font size="3">第三天复习</font></a></p>
    <p align="left"><font face="宋体" size="3">[<a href="index.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/index.html">第1课</a>][<a
    href="day2_1.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day2_1.html">第2课</a>][第3课][<a href="day4_1.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day4_1.html">第4课</a>][<a
    href="day5_1.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day5_1.html">第5课</a>]</font></p>
    <hr align="left">
    <p><font size="2">本文由<a href="javascript:if(confirm('http://chd.126.com/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://chd.126.com/'" tppabs="http://chd.126.com/" target="_blank">《</font><font
    face="verdana, arial, geneva, sans-serif" size="2">CHD</font><font size="2">的网络教室》</a>根据<a
    href="javascript:if(confirm('http://www.webmonkey.com.cn/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.webmonkey.com.cn/'" tppabs="http://www.webmonkey.com.cn/" target="_blank">《网猴》</a>相关文章改编,版权归<a
    href="javascript:if(confirm('http://www.webmonkey.com.cn/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.webmonkey.com.cn/'" tppabs="http://www.webmonkey.com.cn/" target="_blank">《网猴》</a>所有</font></td>
  </tr>
</table>
</div>
</body>
</html>

⌨️ 快捷键说明

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