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

📄 day3_1.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><font size="3">第三天课程简介</font></strong> 
    <p><font size="3">在前面的课程中,我们学习了<font face="宋体">: </font></font><ul>
      <li><font size="3">如何把<font face="宋体">JavaScript </font>加到你的 <font
        face="宋体">HTML</font>页中。 </font></li>
      <li><font size="3">如何用对话框和变量来存储并利用用户输入。</font></li>
      <li><font size="3">如何用 <font face="宋体">JavaScript </font>写<font face="宋体">HTML</font></font></li>
      <font size="3">
      <li><font face="宋体">JavaScript</font>如何用 <font face="宋体"><tt>if-then</tt> </font>语句作出选择。</li>
      </font>
      <li><font size="3">如何使用链接事件制作依据用户行动而反应的网页。</font></li>
      <li><font size="3">怎样制作基本的图片交换。</font></li>
    </ul>
    <font size="3"><p>至今我们已经了解了许多<font face="宋体">,</font>但我们尚未解释其工作原理。例如上<br>
    一课中我演示的 <font face="宋体"><tt>window.document.monkey_image.src =<br>
    &quot;happy_monkey.gif&quot;</tt></font>将把名为<tt><font face="宋体">happy_monkey.gif</font></tt>的图片替换为<br>
    名为<tt><font face="宋体">monkey_image</font></tt>的图片。但是<tt><font
    face="宋体">window.document</font></tt>是什么<font face="宋体">? <tt>.src</tt></font><br>
    是从哪里来的<font face="宋体">? </font>同样<font face="宋体">, </font>你看到了<font
    face="宋体"><tt>document.writeln(&quot;monkey&quot;)</tt>。<br>
    </font>但为什么是 <font face="宋体"><tt>document.writeln</tt> </font>而非 <font
    face="宋体"><tt>writeln</tt>?</font></p>
    <p>上述答案可在文件目标模块<font face="宋体">(JavaScript Document Object<br>
    Model</font>,简写为<font face="宋体">DOM)</font>中解答<font face="宋体">。DOM</font>是<font
    face="宋体">JavaScript</font>网页的方式<font face="宋体">,</font>它<br>
    是所有<font face="宋体">JavaScript</font>编程的核心<font face="宋体">. </font>本讲我们主要讨论<font
    face="宋体">DOM</font>,下一讲<br>
    中我们将教你电脑编程基础的剩余部分。下两课结束后你将了<br>
    解<font face="宋体">JavaScript</font>所有主要思路和语法。剩下所需要学习的是一些<br>
    细节、技巧,以及如何避免混乱。</p>
    </font><p><font size="3">现在我们开始踏上<font face="宋体">DOM</font>之路<font
    face="宋体">, </font>先学一下如何用<font face="宋体">JavaScript</font><a
    href="day3_2.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_2.html">打开并<br>
    操作新的浏览器窗口</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><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><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><a href="day3_5.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_5.html"> <font
    size="2" face="宋体"><b>Windows</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><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 + -