📄 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" rowspan="2"><small><small><br>
</small></small><strong>第七页:<font size="3" face="宋体">识别用户的浏览器</font></strong>
<p><font size="3"><font face="宋体">我所讲到的大部分内容都可以在支持JavaScript的浏览器中<br>
运行。但是在某些浏览器上有些功能却不能正常执行。MSIE <br>
3.0就不支持图片替换。</font></font></p>
<font size="3">
<p><font face="宋体">有几种办法可以处理 不同的浏览器。最简单的就是首先确定<br>
用户所用的浏览器是什么类型,然后根据浏览器的类型执行相<br>
应的指令。 </font></p>
<p><font face="宋体">有些网站直接让用户选择自己的浏览器类型然后执行相应的<br>
指令。但这样并不是一个好办法。用户通常很反感这种让自己<br>
自报家门的事情。同时针对用户所使用的浏览器的版本的不同<br>
你必须做出不同版本的网页。</font></p>
<p><font face="宋体">而用JavaScript就可以识别用户使用的是何种浏览器,然后自<br>
动将用户导引到支持用户浏览器的网页。但这种方法仍须迫使<br>
你为一个页面做出不同的若干个版本并随时进行更新。 </font></p>
</font>
<p><font size="3"><font face="宋体">更好的办法是让你的网页更聪明,让它针对不同的浏览器显示<br>
不同的内容。<a href="day3_8.html">>></a></font></font></p>
<p><font face="宋体" size="3" color="#000000"><strong>JavaScript高级教程</strong></font><font color="#FF0000" face="宋体" size="3"><br>
</font><font face="宋体"><font color="#FF0000">第一页</font> <a href="day3_7.html">Javascript高级教程
- 第三课</a><br>
<font size="3"><font color="#FF0000">第二页</font> <a href="day3_2.html">如何给事件定时</a><br>
<font color="#FF0000">第三页</font> <a href="day3_3.html">定时循环的概念</a><br>
<font color="#FF0000">第四页</font> <a href="day3_4.html">定时循环的做法</a><br>
<font color="#FF0000">第五页</font> <a href="day3_5.html">一个Javascript编写的时钟</a><br>
<font color="#FF0000">第六页</font> <a href="day3_6.html">给定时器加入变量</a><br>
<font color="#FF0000">第七页</font> 识别用户的浏览器<br>
<font color="#FF0000">第八页</font> <a href="day3_8.html">如何识别用户的浏览器</a><br>
<font color="#FF0000">第九页</font> <a href="day3_9.html">对象和方法的识别</a><br>
<font color="#FF0000">第十页</font> <a href="day3_10.html">History对象</a></font></font></p>
<p>[<a href="day1_1.html">第1课</a>][<a href="day2_1.html">第2课</a>][第3课]<font size="3">[<a href="day4_1.html">第4课</a>][<a href="day5_1.html">第5课</a>]</font></p>
<hr align="left">
<!--webbot bot="Include" U-Include="../../copyright.html" TAG="BODY" startspan -->
<p><font face="verdana, arial, geneva, sans-serif" size="2"><a href="http://phtshop.yeah.net" target="_top">本文根据
网猴 相关文章改编,版权归原作者所有。</a> </font><font color="#000000"><span class="smallfont"></span></font></p>
<!--webbot bot="Include" endspan i-checksum="15926" --> </td>
</tr>
<tr> </tr>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -