📄 6.htm
字号:
</table>
</center>
<p><font face="arial" color="#3e80d7" size="2" style="line-height: 25px">
<b style="line-height: 25px"> value N </b></font></p>
<p><font face="arial" color="#000000" size="2" style="line-height: 25px">
一个选择性的参数,它指定 property
N的值,预设为一个字串。要指定一个整数,请在数字前加一前置字元(#)。要指定一个Boolean型数值,请使用TRUE 或 FALSE。</font></p>
<p><font face="arial" color="#3e80d7" size="2" style="line-height: 25px">
<b style="line-height: 25px"> default PropertyN </b></font></p>
<p><font face="arial" color="#000000" size="2" style="line-height: 25px">
一个选择性的参数,如果所有已定义的HTTPUserAgentHeader值和由浏览器发送过来的HTTP User
Agent标题并不相符,那麽该参数就指定设为预设值之浏览器属性的名称。</font></p>
<p><font face="arial" color="#3e80d7" size="2" style="line-height: 25px">
<b style="line-height: 25px"> DefaultValueN </b></font></p>
<p><font face="arial" color="#000000" size="2" style="line-height: 25px">
一个选择性的参数,它指定 default PropertyN的值,预设为一个字串。要指定一个整数,请在数字前加一前置字元(#)。要指定一个Boolean型属性,请用TRUE
或 FALSE。</font></p>
<p><font face="arial" color="#3e76d7" size="2" style="line-height: 25px">
<b style="line-height: 25px">范例<br style="line-height: 25px">
</b></font></p>
<p><font face="arial" color="#000000" size="2" style="line-height: 25px">
在下面的范例中,父标记能让第二个浏览器之定义继承第一个的属性,这样Microsoft Internet Explorer 5.X
定义就继承了Microsoft Internet Explorer 5.0 定义的所有属性(例如,frames= TRUE、tables=
TRUE和cookies= TRUE)。它是藉由新增一行 platform= WinNT来增加平台的特定资讯。</font></p>
<div style="line-height: 25px; background-color: #d7d7d7">
<font face="Arial" size="3" style="line-height: 25px">
<pre style="line-height: 25px">;;ie 5.0
[IE 5.0]
browser= IE
Version=5.0
majorver=#5
minorver=#0
frames= TRUE
tables= TRUE
cookies= TRUE
backgroundsounds= TRUE
vbscript= TRUE
javascript= TRUE
javaapplets= True
ActiveXControls=TRUE
Win16=False
beta= False
AK=False
SK=False
AOL=False
;;ie 5.x
[Mozilla/4.0 (compatible; MSIE 5.*; Windows NT)]
parent= IE 5.0
version=5.0
minorver=0
platform= WinNT
; Default Browser
[*]
browser= Default
frames= FALSE
tables= TRUE
cookies= FALSE
backgroundsounds= FALSE
vbscript= FALSE
javascript= FALSE</pre>
</font>
</div>
<p><font face="arial" color="#3e72d7" size="4" style="line-height: 25px">
<b style="line-height: 25px">从Cookie检索浏览器效能<br style="line-height: 25px">
</b></font></p>
<p><font face="arial" color="#000000" size="2" style="line-height: 25px">
IIS5.0新增了一种方法来确定用户端效能。如果用户端传送了一个描述它们效能的cookie作为请求的一部分,那麽ASP网页可以建立一个Browser
Capabilities元件的例项,它会增加一个由cookie 定义,作为属性的名称值对。</font></p>
<p><font face="arial" color="#000000" size="2" style="line-height: 25px">
例如,如果使用者传送一个包含名称值对user Language=Spanish的cookie,那麽Browser
Capabilities元件会增加一个user Language属性,并将该属性之值指定为Spanish。</font></p>
<hr style="line-height: 25px">
<p>
<font face="Arial" color="#3e77d7" size="3" Black style="line-height: 25px">
<b style="line-height: 25px">重要</b></font> </p>
<p><font face="arial" color="black" size="2" style="line-height: 25px">
如果METADATA# 的标记(metatag)存在於一个档案中,并且该档案是由用户端使用<font face="arial" color="#3e80d7" size="2" style="line-height: 25px"><b style="line-height: 25px"> Server.Transfer </b></font>或<font face="arial" color="#3e80d7" size="2" style="line-height: 25px"><b style="line-height: 25px"> Server.Execute </b></font>方法的重新定向结果来请求的,那麽这个标记(metatag)将会在真正包含重新定向的档案中被IIS5.0
METADATA标记(metatag)所忽略,但尽管如此,它还是会正常执行。</font></p>
<hr style="line-height: 25px">
<p><font face="arial" color="#000000" size="2" style="line-height: 25px">
下面的范例说明了如何使用cookie来确定浏览器效能。它需要用到两个档案:</font></p>
<font face="arial" color="#000000" size="2" style="line-height: 25px">
<ul style="line-height: 25px">
<li style="line-height: 25px">Sendcook.Htm档案执行在用户端上,它使用DHTML来确定一组已设定在用户端上的属性。<br style="line-height: 25px">
</li>
<li style="line-height: 25px">Checkcap.Asp档案建立一个Browser Capabilities元件的例项,并从Sendcook.htm中检索属性。<br style="line-height: 25px">
</li>
</ul>
</font>
<div style="line-height: 25px; background-color: #d7d7d7">
<font face="Arial" size="3" style="line-height: 25px">
<pre style="line-height: 25px">Sendcook.htm
< HTML >
< HEAD >
< SCRIPT language="Java Script">
function stop AllErrors ()
{
// No errors should be presented to the user if they occur.
return true;
}
window.onerror = stop AllErrors;
function window.onload ()
{
oClientCaps.style.behavior = "url(#default#client Caps )";
bcString = "width= " + oClientCaps.width;
bcString += "&height= " + oClientCaps.height;
bcString += "&bufferDepth= " + oClientCaps.bufferDepth;
bcString += "&colorDepth= " + oClientCaps.colorDepth;
bcString += "&cookies= " + oClientCaps.cookieEnabled;
bcString += "&platform= " + oClientCaps.platform;
document.cookie = "Brows Cap= " + bcString;
}
</ SCRIPT >
</ HEAD >
< BODY ID= "oClientCaps">
</ BODY >
</ HTML >
Checkcap.asp
<!--METADATA TYPE= "Cookie" NAME= "Brows Cap" SRC= "sendcook.htm" -->
< HTML >
< BODY >
<% Set myBrowsCap = Server.CreateObject ("MSWC.BrowserType") %>
<%
Response.write ("width= " +my BrowsCap.width + "<BR>"
Response.write ("height= " +my BrowsCap.height + "<BR>"
Response.write ("buffer Depth= " +myBrowsCap.bufferDepth + "<BR>"
Response.write ("color Depth= " +myBrowsCap.colorDepth + "<BR>"
Response.write ("cookies= " + CStr (my BrowsCap.cookies ) + "<BR>"
Response.write ("platform= " +my BrowsCap.platform + "<BR>"
%>
</ BODY >
</ HTML ></pre>
</font>
</div>
<p><font face="arial" color="#000000" size="2" style="line-height: 25px">
有关确定浏览器效能的更多资讯,请参阅《Microsoft Internet Information Services
5.0超级管理手册—网站管理篇》第7章〈开发Web应用程式〉中的〈用户端的能力〉部份。</font></p>
<a name="206003" style="line-height: 25px">
<p><font face="arial" color="#3e70d7" size="5" style="line-height: 25px">
<b style="line-height: 25px">Content Linking元件<br style="line-height: 25px">
</b></font></p>
<p><font face="arial" color="#000000" size="2" style="line-height: 25px">
Content Linking元件建立了一个<font face="arial" color="#3e80d7" size="2" style="line-height: 25px"><b style="line-height: 25px"> Nextlink </b></font>物件,该物件管理一组URL,让您可以就像看书一样地浏览网站上的网页。您可以用Content
Linking元件来自动产生和更新内容表格,以及前後网页的连结。线上报纸和论坛讯息清单的理想应用就是这种情况。</font></p>
<p><font face="arial" color="#000000" size="2" style="line-height: 25px">
Content Linking元件使用一个包含连结网页清单的Content Linking List档案。该清单储存在Web伺服器上。</font></p>
<p><font face="arial" color="#3e76d7" size="2" style="line-height: 25px">
<b style="line-height: 25px">档案名称<br style="line-height: 25px">
</b></font></p>
<center style="line-height: 25px">
<table border="1" style="line-height: 25px">
<tbody style="line-height: 25px">
<tr style="line-height: 25px">
<td style="line-height: 25px">
<font face="arial" color="#3e80d7" size="2" style="line-height: 25px">
<b style="line-height: 25px"> Nextlink.dll </b></font></td>
<td style="line-height: 25px"><font size="2" style="line-height: 25px">
Content Linking元件。</font></td>
</tr>
<tr style="line-height: 25px">
<td style="line-height: 25px">
<font face="arial" color="#3e80d7" size="2" style="line-height: 25px">
<b style="line-height: 25px"> Content Linking List </b></font></td>
<td style="line-height: 25px"><font size="2" style="line-height: 25px">
一个文字档,它包含一组按显示顺序排列的网页。这个档案必须能在Web伺服器的虚拟路径下找到。</font></td>
</tr>
</table>
</center>
<p><font face="arial" color="#3e76d7" size="2" style="line-height: 25px">
<b style="line-height: 25px">语法<br style="line-height: 25px">
</b></font></p>
<div style="line-height: 25px; background-color: #d7d7d7">
<font face="Arial" size="3" style="line-height: 25px">
<pre style="line-height: 25px">Set NextLink = Server.CreateObject ("MSWC.NextLink")</pre>
</font>
</div>
<p><font face="arial" color="#3e76d7" size="2" style="line-height: 25px">
<b style="line-height: 25px">参数<br style="line-height: 25px">
</b></font></p>
<p><font face="arial" color="#3e80d7" size="2" style="line-height: 25px">
<b style="line-height: 25px"> NextLink </b></font></p>
<p><font face="arial" color="#000000" size="2" style="line-height: 25px">指定由Server.CreateObject建立的物件名称。</font></p>
<p><font face="arial" color="#3e76d7" size="2" style="line-height: 25px">
<b style="line-height: 25px">方法<br style="line-height: 25px">
</b></font></p>
<center style="line-height: 25px">
<table border="1" style="line-height: 25px">
<tbody style="line-height: 25px">
<tr style="line-height: 25px">
<td style="line-height: 25px">
<font face="arial" color="#3e80d7" size="2" style="line-height: 25px">
<b style="line-height: 25px"> GetListCount </b></font></td>
<td style="line-height: 25px"><font size="2" style="line-height: 25px">
计算Content Linking List档案中连结的专案数目。</font></td>
</tr>
<tr style="line-height: 25px">
<td style="line-height: 25px">
<font face="arial" color="#3e80d7" size="2" style="line-height: 25px">
<b style="line-height: 25px"> GetListIndex </b></font></td>
<td style="line-height: 25px"><font size="2" style="line-height: 25px">
获得目前网页在Content Linking List档案中的索引。</font></td>
</tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -