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

📄 day1_4.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><font size="1"><br>
    </font><font size="3">第四页:隐藏<font face="宋体">JavaScript</font></font></strong> 
    <p><font face="宋体"><font size="3">在上一个例子中我们碰到一个问题即有些旧的浏览器不理<br>
    解<tt>&lt;script&gt;</font><font size="4">标签。这些浏览器将象对付HTML一样对待你<br>
    的</font></tt><font size="3">JavaScript,于是乎该页面看起来是这样的:</font></font> 
    <ul>
      <li><font size="3" face="宋体"><tt>//put up an alert box, to show how they work 
        alert(&quot;Soon, I will overthrow my browser!&quot;); </tt></font><h1><font size="3"
        face="宋体"><tt>Congratulations</tt></font></h1>
      </li>
    </ul>
    <p><font size="3" face="宋体">这多糟糕! 幸运的是, 在HTML注释中有一个解决之法:</font> 
    <ul>
      <li><font size="3" face="宋体"><tt>&lt;html&gt; <br>
        &lt;head&gt; <br>
        &lt;title&gt; blah blah blah &lt;/title&gt; </tt></font><p><font size="3" face="宋体"><tt>&lt;script 
        language=&quot;JavaScript&quot;&gt; </tt></font></p>
        <p><font size="3" face="宋体"><tt>&lt;!-- hide this stuff from other browsers </tt></font></p>
        <p><font size="3" face="宋体"><tt>这里写入你的语言</tt></font></p>
        <p><font size="3" face="宋体"><tt>// end the hiding comment --&gt; </tt></font></p>
        <p><font size="3" face="宋体"><tt>&lt;/script&gt; <br>
        <br>
        &lt;/head&gt; <br>
        &lt;body&gt;<br>
        等等......</tt></font></p>
      </li>
    </ul>
    <p><font size="3" face="宋体">该方法的工作原理困惑了我好长一段时间,但你无须理解也能<br>
    用它。若你非想知道,<a
    href="javascript:if(confirm('http://www.hotwired.com/webmonkey/98/03/comment_trick.html  \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.hotwired.com/webmonkey/98/03/comment_trick.html'" tppabs="http://www.hotwired.com/webmonkey/98/03/comment_trick.html" target="_blank">这里为你介绍</a>。</font></p>
    <p><font size="3" face="宋体">好了,无论你相不相信,你将准备你的<a
    href="javascript:if(confirm('http://www.hotwired.com/webmonkey/98/03/homework.html  \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.hotwired.com/webmonkey/98/03/homework.html'" tppabs="http://www.hotwired.com/webmonkey/98/03/homework.html" target="_blank">第一个JavaScript练习</a>. 
    </font></p>
    <p><font size="3" face="宋体">你已精疲力尽了吧? 在你挂机之前, 
    花一分钟阅读一下我们的<br>
    <a href="day1_5.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day1_5.html">第一天回顾</a>。</font></p>
    <p><a href="day1_5.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day1_5.html"><font size="3" face="宋体">&gt;&gt;</font></a></p>
    <p><font face="宋体"><font size="3"><strong><font color="#000000">JavaScript教程</font></strong><font
    color="#FF0000"><br>
    第一页:</font><a href="index.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/index.html">Javascript</font>教程</a></font><font size="2"><br>
    </font><font size="3"><font color="#FF0000">第二页:</font><a href="day1_4.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day1_4.html">课程简介</a></font><font
    size="2"><br>
    </font><font size="3"><font color="#FF0000">第三页:</font><a href="day1_3.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day1_3.html">实际应用</a></font><font
    size="2"><br>
    </font><font size="3"><font color="#FF0000">第四页:</font>隐藏<font face="宋体">JavaScript</font></font><font
    size="2" face="宋体"><br>
    </font><font face="宋体" color="#FF0000">第五页:</font><a href="day1_5.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day1_5.html"><font
    size="3">第一天复习</font></a></p>
    <p><font face="宋体" size="3">[第1课][<a href="day2_1.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day2_1.html">第2课</a>][<a
    href="day3_1.html" tppabs="http://www.pchome.net/ch/tur/pstext/teacher/javascript/day3_1.html">第3课</a>][<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 + -