📄 day3_7.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">将你的鼠标放在下面两个链接上,睁大你的眼睛看看窗口下的<br>
状态条上发生了什么?</font></p>
<font size="3"><p><font face="宋体"><a href="#"
onMouseOver="window.status='约翰亨德里格斯!';">Who do we love?</a><br>
<a href="#" onMouseOver="window.status='查尔斯还没有回来!!';">Why do we love
them?</a><br>
<br>
</font>这里是首行的源码:</p>
</font><p><font face="宋体"><a href="#"
onMouseOver="window.status='Monkeys!';">Who<br>
do we love?</a><br>
</font></p>
<p><font size="3">这是说:“当鼠标移动到这个链接上时,改变状态条。”</font></p>
<font size="3"><h2>目标的方式</h2>
<p>除了属性之外,对象还具有“方式”。“方式”是对象所知的<br>
如何运作的进程。例如,窗口知道如何打开另一些窗口:<br>
<font face="宋体">window.open("URL,""name,""features")</font>。它告诉<font
face="宋体">Javascript</font><br>
用窗口的<font face="宋体">open</font>方式来打开一个新窗口。</p>
</font><p><font face="宋体" size="3">因而,就象上例中,一个对象的“方式”也被称为其获取一个<br>
特性的方式:对象名,周期,而后是方式。主要的不同在于方<br>
式总在其后跟随一对含有方式参数的圆括弧。甚至当方式不调<br>
用参数时,圆括弧也必须有的。还记得这个吗?</font></p>
<p><big><font face="宋体"><br>
var italic_hippy = hippy_monkey.italics();<br>
<br>
</font></big><font size="3">对啦!字符串实际上就是对象, <font face="宋体">italics()</font>即是字符对象的<br>
参数。 </font></p>
<p><font face="宋体" size="3">你已经看了一些窗口方式的例子但还没有了解它。对话框调用<br>
alert及prompt实际上也是窗口对象的方式。如果你调用:</font></p>
<p><big><font face="宋体"><br>
window.alert("Viva la primate!");<br>
<br>
</font></big><font size="3">你将看到对话框并读到“<font face="宋体">Viva la
primate!</font>”我们直接能<font face="宋体"><a href="javascript:if(confirm('http://www.pchome.net/ch/tur/pstext/teacher/javascript/tutorial3_page7.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_page7.html#'" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/tutorial3_page7.html#"
onClick="window.blur();">试试<br>
这个闪烁的窗口</a>.</font></font></p>
<p><font face="宋体" size="3">看起来好象有点傻,更好的效果可以参看<a
href="day3_8.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_8.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_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_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><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_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 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 + -