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

📄 6.htm

📁 IIS5.0超级管理手册-网页开发篇 书籍语言: 简体中文 书籍类型: 网页设计 授权方式: 免费软件 书籍大小: 262 KB
💻 HTM
📖 第 1 页 / 共 5 页
字号:
  </table>
  </center>
  <p><font face="arial" color="#3e80d7" size="2" style="line-height: 25px">
  <b style="line-height: 25px">&nbsp;value N&nbsp;</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">&nbsp;default PropertyN&nbsp;</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">&nbsp;DefaultValueN&nbsp;</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">&nbsp;Server.Transfer&nbsp;</b></font>或<font face="arial" color="#3e80d7" size="2" style="line-height: 25px"><b style="line-height: 25px">&nbsp;Server.Execute&nbsp;</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
&lt; HTML &gt;
&lt; HEAD &gt;

&lt; SCRIPT language=&quot;Java Script&quot;&gt; 

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 = &quot;url(#default#client Caps )&quot;;
	bcString = &quot;width= &quot; + oClientCaps.width;
	bcString += &quot;&amp;height= &quot; + oClientCaps.height;
	bcString += &quot;&amp;bufferDepth= &quot; + oClientCaps.bufferDepth;
	bcString += &quot;&amp;colorDepth= &quot; + oClientCaps.colorDepth;
	bcString += &quot;&amp;cookies= &quot; + oClientCaps.cookieEnabled;
	bcString += &quot;&amp;platform= &quot; + oClientCaps.platform;
	document.cookie = &quot;Brows Cap= &quot; + bcString;
&lt;/ SCRIPT &gt;
&lt;/ HEAD &gt;
&lt; BODY ID= &quot;oClientCaps&quot;&gt;
&lt;/ BODY &gt;
&lt;/ HTML &gt;

Checkcap.asp 
&lt;!--METADATA TYPE= &quot;Cookie&quot; NAME= &quot;Brows Cap&quot; SRC= &quot;sendcook.htm&quot; --&gt;
&lt; HTML &gt;
&lt; BODY &gt;
&lt;% Set myBrowsCap = Server.CreateObject (&quot;MSWC.BrowserType&quot;) %&gt;
&lt;%
   Response.write (&quot;width= &quot; +my BrowsCap.width + &quot;&lt;BR&gt;&quot;
   Response.write (&quot;height= &quot; +my BrowsCap.height + &quot;&lt;BR&gt;&quot;
   Response.write (&quot;buffer Depth= &quot; +myBrowsCap.bufferDepth + &quot;&lt;BR&gt;&quot;
   Response.write (&quot;color Depth= &quot; +myBrowsCap.colorDepth + &quot;&lt;BR&gt;&quot;
   Response.write (&quot;cookies= &quot; + CStr (my BrowsCap.cookies ) + &quot;&lt;BR&gt;&quot;
   Response.write (&quot;platform= &quot; +my BrowsCap.platform + &quot;&lt;BR&gt;&quot;
%&gt;
&lt;/ BODY &gt;
&lt;/ HTML &gt;</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">&nbsp;Nextlink&nbsp;</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">&nbsp;Nextlink.dll&nbsp;</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">&nbsp;Content Linking List&nbsp;</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 (&quot;MSWC.NextLink&quot;)</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">&nbsp;NextLink&nbsp;</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">&nbsp;GetListCount&nbsp;</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">&nbsp;GetListIndex&nbsp;</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 + -