📄 day3_9.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><b><font
size="2" face="宋体">JavaScript DOM</font></b> <p><font size="3">现在我们已经了解了:<font
face="宋体">JavaScript</font>包括缺省对象,例如窗口,<br>
对象具有用于描述对象的属性,方法用于描述对象采取行动<br>
的方法。</font></p>
<p><font size="3">对象的属性页可以是对象。举例来说:窗口有一个属性叫做<br>
<font face="宋体"><tt>document</tt></font>,它用于引用到窗口中实际的<font
face="宋体">HTML</font>文件。该<font face="宋体"><tt>document</tt></font><br>
属性本身就是一个对象。在谈到图象掉换(<font face="宋体">image swap)</font>的时<br>
候,我们见到过这样的例子。你可以用下列语句作图象掉换<font
face="宋体">:</font></font></p>
<p><font face="宋体" size="3"><a href="#"
onMouseOver="window.document.the_image.src='button_d.gif';">change</a><br>
<br>
</font></p>
<font size="3"><p>上述语句的意思是说:找到<font face="宋体">window</font>的<font
face="宋体">document</font>属性,找到<br>
<font face="宋体"><tt>the_image</tt></font>的<font face="宋体">src</font>属性并将其设置为图象<font
face="宋体"><tt>button_d.gif</tt></font>。这样写<br>
是因为窗口(<font face="宋体">windows</font>)是对象,窗口内的文件(<font
face="宋体">documents</font>)<br>
是对象,而文件(<font face="宋体">document</font>)内的图象(<font
face="宋体">images</font>)页是对象。</p>
<p>看起来似乎很复杂,但它的结构很清楚。<font face="宋体">JavaScript</font>的文件对<br>
象模块(<font face="宋体">Document Object Model</font>)描述了对象之间的等级关系。</p>
<p>在该教程中,我们只看到该等级关系的一部分。使你的网页具有<br>
精彩动感的大多数技巧都涉及到文件对象。文件对象内容非常丰<br>
富,实际上应该专门开一门教程将这个问题。在本课程中,我们<br>
将集中谈谈<a href="day3_10.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_10.html">窗口的其它属性</a>。</p>
</font><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_9.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_9.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><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><font size="3">再谈</font><font size="2" face="宋体"><b>JavaScript
DOM</b><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 + -