?? tutorial3_page3.html
字號(hào):
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb_2312-80">
<meta NAME="GENERATOR" CONTENT="Microsoft FrontPage 3.0">
<title>Webmonkey: javascript: Thau's JavaScript Tutorial: Day 1</title>
<meta NAME="keywords"
CONTENT="javascript, hotwired, webmonkey, javascript, javascript tutorial, thau, dave thau, developer resource, developer, development, web
development, design, code, geek, warez, free, new, latest, news, tools,
info, tutorials, how-to, builder, web builder, pag">
<meta NAME="description"
CONTENT="Thau's JavaScript Tutorial: Day 1: Not only does Thau give the JavaScript skinny, but he'll have you writing your first script by the end of the day.">
<meta NAME="Template" CONTENT="E:\LIZEJUN\OFFICE\html.dot">
</head>
<body TEXT="#000000" LINK="#0000ff" VLINK="#800080" BGCOLOR="#ffffff">
<table CELLSPACING="0" BORDER="0" CELLPADDING="3" WIDTH="540">
<tr>
<td WIDTH="68%" VALIGN="MIDDLE"><font FACE="宋體" LANG="ZH-CN" SIZE="4" COLOR="#ff0000"></font><b><font
FACE="System,黑體" LANG="ZH-CN" COLOR="#ff0000">第</font><font FACE="宋體"
LANG="ZH-CN" COLOR="#ff0000">3</font><font FACE="System,黑體" LANG="ZH-CN"
COLOR="#ff0000">頁</font><font FACE="宋體" LANG="ZH-CN" COLOR="#ff0000">:JavaScript </font><font
FACE="System,黑體" LANG="ZH-CN" COLOR="#ff0000">中的窗口操作</font><font
COLOR="#ff0000"> </font></b><font FACE="System,黑體" LANG="ZH-CN"><br>
<!-- BYLINE --> </font><font FACE="System,黑體" LANG="ZH-CN" SIZE="2">作者:</font><a
HREF="mailto:thau@wired.com"><font FACE="宋體" LANG="ZH-CN" SIZE="2">Thau!</font></a><font
FACE="宋體" LANG="ZH-CN"> <!-- SEE ALSO LINKS --></font></td>
</tr>
<tr>
<td WIDTH="68%" VALIGN="TOP" BGCOLOR="#ffffff"><font FACE="System,黑體" LANG="ZH-CN">在</font><font
FACE="宋體" LANG="ZH-CN">HTML</font><font FACE="System,黑體" LANG="ZH-CN">中打開窗口應(yīng)用極為普遍,但也有一些缺陷;用戶瀏覽器決定窗口看起來是什么樣的,你左右不了其窗口的大小及式樣。幸運(yùn)的是,</font><font
FACE="宋體" LANG="ZH-CN">JavaScript</font><font FACE="System,黑體" LANG="ZH-CN">給了你這種控制權(quán)。<p>看一看其原由</font><font
FACE="宋體" LANG="ZH-CN">:</p>
</font><pre>
window.open("URL","name","features");
</pre>
<tt><font FACE="System,黑體" LANG="ZH-CN"><p>本語句以你調(diào)用時(shí)采用的第一個(gè)參數(shù)</font><font
FACE="宋體" LANG="ZH-CN">URL</font><font FACE="System,黑體" LANG="ZH-CN">來打開一個(gè)窗口。這里是以</font><font
FACE="宋體" LANG="ZH-CN">URL</font><font FACE="System,黑體" LANG="ZH-CN">,實(shí)際中可寫成</tt><br>
</font><font FACE="宋體" LANG="ZH-CN">"</font><tt>http:
//www.hotwired.com/webmonkey/</tt><font FACE="宋體" LANG="ZH-CN">" </font><font
FACE="System,黑體" LANG="ZH-CN">或其他類似的東西。</p>
<p>第二個(gè)參數(shù)是窗口的名字。這就象上頁中我們看到的名字,如果你打開窗口時(shí)已有一個(gè)同名窗口打開,那么</font><font
FACE="宋體" LANG="ZH-CN">URL</font><font FACE="System,黑體" LANG="ZH-CN">將把</font><font
FACE="宋體" LANG="ZH-CN">open</font><font FACE="System,黑體" LANG="ZH-CN">語句送到原先已打開的窗口。</p>
<p>第三個(gè)參數(shù),</font> <font FACE="宋體" LANG="ZH-CN">features</font><font
FACE="System,黑體" LANG="ZH-CN">,是一個(gè)窗口所具有的不同特征。這是個(gè)可選參數(shù),我們先做關(guān)于頭兩個(gè)參數(shù)的練習(xí)。</p>
<p>這里是一些用</font><font FACE="宋體" LANG="ZH-CN">JavaScript</font><font
FACE="System,黑體" LANG="ZH-CN">打開窗口的<a HREF="tppmsgs/msgs0.htm#78">例子</a>。</font>
</p>
<p><!-- PAGE X LINKS --><!-- this stuff checks if there are more pages in this story. if so, we'll
suck out the titles of those pages and build links. Right now, the maximum is 15 pages. --><!-- this stuff checks if there are more pages in this story. if so, we'll
suck out the titles of those pages and build links. Right now, the maximum is 15 pages. --><font FACE="System,黑體" LANG="ZH-CN">第</font><font FACE="宋體" LANG="ZH-CN">1</font><font
FACE="System,黑體" LANG="ZH-CN">頁</font><font FACE="宋體" LANG="ZH-CN" SIZE="2">:</font><a
HREF="tutorial3_page1.html"><font FACE="System,黑體" LANG="ZH-CN">第三天課程簡介</font></a><font
FACE="System,黑體" LANG="ZH-CN" SIZE="2"><br>
<!-- this is a mini-template that formats each pageX link. So, if a story
has 15 pages, we need to generate 15 links to it. This is how each one
will look... --> </font><font FACE="System,黑體" LANG="ZH-CN">第</font><font FACE="宋體" LANG="ZH-CN">2</font><font
FACE="System,黑體" LANG="ZH-CN">頁</font><font FACE="宋體" LANG="ZH-CN" SIZE="2">:</font><a
HREF="tutorial3_page2.html"><font FACE="System,黑體" LANG="ZH-CN">窗口操作介紹</font></a><font
FACE="System,黑體" LANG="ZH-CN" SIZE="2"><br>
<!-- this is a mini-template that formats each pageX link. So, if a story
has 15 pages, we need to generate 15 links to it. This is how each one
will look... --> </font><font FACE="System,黑體" LANG="ZH-CN">第</font><font FACE="宋體" LANG="ZH-CN">3</font><font
FACE="System,黑體" LANG="ZH-CN">頁</font><font FACE="宋體" LANG="ZH-CN" SIZE="2">: </font><a
HREF="tutorial3_page3.html"><strong><font FACE="System,黑體" LANG="ZH-CN"
COLOR="#0000ff"><u>Javascript</u></font></strong><font FACE="System,黑體" LANG="ZH-CN">中的窗口操作</font></a><font
FACE="System,黑體" LANG="ZH-CN" SIZE="2"><br>
<!-- this is a mini-template that formats each pageX link. So, if a story
has 15 pages, we need to generate 15 links to it. This is how each one
will look... --> </font><font FACE="System,黑體" LANG="ZH-CN">第</font><font FACE="宋體" LANG="ZH-CN">4</font><font
FACE="System,黑體" LANG="ZH-CN">頁</font><font FACE="宋體" LANG="ZH-CN" SIZE="2">: <a
HREF="tutorial3_page4.html"><b>JavaScript</b></font><font FACE="System,黑體"
LANG="ZH-CN">中的窗口操作舉例</font></a><font FACE="System,黑體" LANG="ZH-CN"
SIZE="2"><br>
<!-- this is a mini-template that formats each pageX link. So, if a story
has 15 pages, we need to generate 15 links to it. This is how each one
will look... --> </font><font FACE="System,黑體" LANG="ZH-CN">第</font><font FACE="宋體" LANG="ZH-CN">5</font><font
FACE="System,黑體" LANG="ZH-CN">頁</font><font FACE="宋體" LANG="ZH-CN" SIZE="2">: <a
HREF="tutorial3_page5.html"><b>Windows </b></font><font FACE="System,黑體" LANG="ZH-CN">特性</font></a><font
FACE="System,黑體" LANG="ZH-CN" SIZE="2"><br>
<!-- this is a mini-template that formats each pageX link. So, if a story
has 15 pages, we need to generate 15 links to it. This is how each one
will look... --> </font><font FACE="System,黑體" LANG="ZH-CN">第</font><font FACE="宋體" LANG="ZH-CN">6</font><font
FACE="System,黑體" LANG="ZH-CN">頁</font><font FACE="宋體" LANG="ZH-CN" SIZE="2">: <a
HREF="tutorial3_page6.html"><b>JavaScript </b></font><font FACE="System,黑體"
LANG="ZH-CN">文件目標(biāo)模塊</font></a><font FACE="System,黑體" LANG="ZH-CN" SIZE="2"><br>
<!-- this is a mini-template that formats each pageX link. So, if a story
has 15 pages, we need to generate 15 links to it. This is how each one
will look... --> </font><font FACE="System,黑體" LANG="ZH-CN">第</font><font FACE="宋體" LANG="ZH-CN">7</font><font
FACE="System,黑體" LANG="ZH-CN">頁</font><font FACE="宋體" LANG="ZH-CN" SIZE="2">: </font><a
HREF="tutorial3_page7.html"><font FACE="System,黑體" LANG="ZH-CN">狀態(tài)條的操作</font></a><font
FACE="System,黑體" LANG="ZH-CN" SIZE="2"><br>
<!-- this is a mini-template that formats each pageX link. So, if a story
has 15 pages, we need to generate 15 links to it. This is how each one
will look... --> </font><font FACE="System,黑體" LANG="ZH-CN">第</font><font FACE="宋體" LANG="ZH-CN">8</font><font
FACE="System,黑體" LANG="ZH-CN">頁</font><font FACE="宋體" LANG="ZH-CN" SIZE="2">: </font><a
HREF="tutorial3_page8.html"><font FACE="System,黑體" LANG="ZH-CN">窗口間的交流</font></a><font
FACE="System,黑體" LANG="ZH-CN" SIZE="2"><br>
<!-- this is a mini-template that formats each pageX link. So, if a story
has 15 pages, we need to generate 15 links to it. This is how each one
will look... --> </font><font FACE="System,黑體" LANG="ZH-CN">第</font><font FACE="宋體" LANG="ZH-CN">9</font><font
FACE="System,黑體" LANG="ZH-CN">頁</font><font FACE="宋體" LANG="ZH-CN" SIZE="2">: </font><a
HREF="tutorial3_page9.html"><font FACE="System,黑體" LANG="ZH-CN">再談</font><font
FACE="宋體" LANG="ZH-CN" SIZE="2"><b>JavaScript DOM</b></a><br>
<!-- this is a mini-template that formats each pageX link. So, if a story
has 15 pages, we need to generate 15 links to it. This is how each one
will look... --> </font><font FACE="System,黑體" LANG="ZH-CN">第</font><font FACE="宋體" LANG="ZH-CN">10</font><font
FACE="System,黑體" LANG="ZH-CN">頁</font><font FACE="宋體" LANG="ZH-CN" SIZE="2">: </font><a
HREF="tutorial3_page10.html"><font FACE="System,黑體" LANG="ZH-CN">窗口的其它特性</font></a><font
FACE="System,黑體" LANG="ZH-CN" SIZE="2"><br>
<!-- this is a mini-template that formats each pageX link. So, if a story
has 15 pages, we need to generate 15 links to it. This is how each one
will look... --> </font><font FACE="System,黑體" LANG="ZH-CN">第</font><font FACE="宋體" LANG="ZH-CN">11</font><font
FACE="System,黑體" LANG="ZH-CN">頁</font><font FACE="宋體" LANG="ZH-CN" SIZE="2">: </font><a
HREF="tutorial3_page11.html"><font FACE="System,黑體" LANG="ZH-CN">再談</font> <font
FACE="宋體" LANG="ZH-CN" SIZE="2"><b>Window </b></font><font FACE="System,黑體"
LANG="ZH-CN">及</font><font FACE="宋體" LANG="ZH-CN" SIZE="2"><b>Frame</b></font><font
FACE="System,黑體" LANG="ZH-CN">樹杈結(jié)構(gòu)</font></a><font FACE="System,黑體"
LANG="ZH-CN" SIZE="2"><br>
<!-- this is a mini-template that formats each pageX link. So, if a story
has 15 pages, we need to generate 15 links to it. This is how each one
will look... --> </font><font FACE="System,黑體" LANG="ZH-CN">第</font><font FACE="宋體" LANG="ZH-CN">12</font><font
FACE="System,黑體" LANG="ZH-CN">頁</font><font FACE="宋體" LANG="ZH-CN" SIZE="2">: </font><a
HREF="tutorial3_page12.html"><font FACE="System,黑體" LANG="ZH-CN">自己動(dòng)手操作</font></a><font
FACE="System,黑體" LANG="ZH-CN" SIZE="2"><br>
<!-- this is a mini-template that formats each pageX link. So, if a story
has 15 pages, we need to generate 15 links to it. This is how each one
will look... --> </font><font FACE="System,黑體" LANG="ZH-CN">第</font><font FACE="宋體" LANG="ZH-CN">13</font><font
FACE="System,黑體" LANG="ZH-CN">頁</font><font FACE="宋體" LANG="ZH-CN" SIZE="2">: </font><a
HREF="tutorial3_page13.html"><font FACE="System,黑體" LANG="ZH-CN">第三天復(fù)習(xí)</font></a><font
FACE="System,黑體" LANG="ZH-CN" SIZE="2"><br>
</p>
<p><br>
<!-- AUTHOR TAGLINE --> </font></td>
</tr>
</table>
<font FACE="System,黑體" LANG="ZH-CN">
<p> </p>
</font>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -