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

📄 6.htm

📁 IIS5.0超级管理手册-网页开发篇 书籍语言: 简体中文 书籍类型: 网页设计 授权方式: 免费软件 书籍大小: 262 KB
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>6</title>
<style>
<!--

	* {line-height:25px;}
-->
</style>
</head>

<body>

<div language="javascript" id="tab1" style="line-height: 25px; margin-left: 20px" ondragover="return tab1_ondragover()">
  <p align="center"><b><font size="5" color="#0078FF">
  <span style="background-color: #CCCCCC">6. 用於ASP的可安装元件</span></font></b></p>
  <p><font face="arial" color="#000000" size="2" style="line-height: 25px">
  您可以使用Active Server Pages(ASP)提供的伺服器元件在指令档中建立动态的、互动式的网页。本章内容包括这些元件的相关资讯和一些范例。</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;Ad Rotator&nbsp;</b></font></td>
        <td style="line-height: 25px"><font size="2" style="line-height: 25px">
        建立一个按指定的时间自动转换在主网页上显示广告的<font face="arial" color="#3e80d7" size="2" style="line-height: 25px"><b style="line-height: 25px">&nbsp;Adrotator&nbsp;</b></font>物件。</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;Browser Capabilities&nbsp;</b></font></td>
        <td style="line-height: 25px"><font size="2" style="line-height: 25px">
        建立一个<font face="arial" color="#3e80d7" size="2" style="line-height: 25px"><b style="line-height: 25px">&nbsp;BrowserType&nbsp;</b></font>物件,用以确定每一个存取您网站之浏览器的效能、类型和版本。</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&nbsp;</b></font></td>
        <td style="line-height: 25px"><font size="2" style="line-height: 25px">
        建立一个<font face="arial" color="#3e80d7" size="2" style="line-height: 25px"><b style="line-height: 25px">&nbsp;NextLink&nbsp;</b></font>物件,用以建立网页的资料表,并将其按顺序全部连结起来。</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 Rotator&nbsp;</b></font></td>
        <td style="line-height: 25px"><font size="2" style="line-height: 25px">
        在一个网页上自动处理HTML内容字串的转换。</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;Counters&nbsp;</b></font></td>
        <td style="line-height: 25px"><font size="2" style="line-height: 25px">
        建立一个能产生、储存、增加和检索计数器数目的Counters物件。</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;Database Access&nbsp;</b></font></td>
        <td style="line-height: 25px"><font size="2" style="line-height: 25px">
        透过ActiveX Data Objects(ADO)提供对资料库的存取。</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;File Access Component&nbsp;</b></font></td>
        <td style="line-height: 25px"><font size="2" style="line-height: 25px">
        提供对於输入输出档案的存取。</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;Logging Utility&nbsp;</b></font></td>
        <td style="line-height: 25px"><font size="2" style="line-height: 25px">
        可让您读取由Internet Information Services(IIS)5.0产生的HTTP活动日志档案。</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;MyInfo&nbsp;</b></font></td>
        <td style="line-height: 25px"><font size="2" style="line-height: 25px">
        建立一个用来追踪个人资讯,例如网站管理员的名称、位址和显示选择等的<font face="arial" color="#3e80d7" size="2" style="line-height: 25px"><b style="line-height: 25px">&nbsp;MyInfo&nbsp;</b></font>物件。</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;Page Counter&nbsp;</b></font></td>
        <td style="line-height: 25px"><font size="2" style="line-height: 25px">
        总计并显示某个网页被连结的次数。</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;Permission Checker&nbsp;</b></font></td>
        <td style="line-height: 25px"><font size="2" style="line-height: 25px">
        使用IIS 5.0提供的密码验证协定来确认一个网路使用者是否有权读取某个档案。</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;Status&nbsp;</b></font></td>
        <td style="line-height: 25px"><font size="2" style="line-height: 25px">
        建立一个包含伺服器状态资讯属性的<font face="arial" color="#3e80d7" size="2" style="line-height: 25px"><b style="line-height: 25px">&nbsp;Status&nbsp;</b></font>物件。目前,伺服器状态仅对Macintosh的Personal 
        Web Server 有效。</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;Tools&nbsp;</b></font></td>
        <td style="line-height: 25px"><font size="2" style="line-height: 25px">
        建立一个可以为网页轻松增加进阶功能的<font face="arial" color="#3e80d7" size="2" style="line-height: 25px"><b style="line-height: 25px">&nbsp;Tools&nbsp;</b></font>物件。</font></td>
      </tr>
  </table>
  </center>
  <p><font face="arial" color="#000000" size="2" style="line-height: 25px">
  有关使用ASP设计伺服器指令档的资讯,请参阅《Microsoft Internet Information Services 
  5.0超级管理手册—网站管理篇》第7章〈开发Web应用程式〉。关於由ASP提供之内建物件的更多资讯,请参阅&nbsp;<a target="_new" href="http://e-msbooks.com/relaunch/XML/paser.asp?src=957-2085-16-6_205.xml#205" style="line-height: 25px">第5章〈ASP内建物件的参考〉</a>&nbsp;。</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">
  本书中的范例使用Microsoft Visual Basic Scripting Edition(VBScript)作为主要的指令档语言。然而,ASP网页中的指令档是可以用任何一种它所支援的指令档语言来编写的。关於如何改变主要指令档语言的资讯,请参阅《Microsoft 
  Internet Information Services 5.0超级管理手册—网站管理篇》第6章〈Active Server 
  Pages〉中的〈使用指令语言〉。</font></p>
  <hr style="line-height: 25px">
  <a name="206001" style="line-height: 25px">
  <p><font face="arial" color="#3e70d7" size="5" style="line-height: 25px">
  <b style="line-height: 25px">Ad Rotator元件<br style="line-height: 25px">
 </b></font></p>
  <p><font face="arial" color="#000000" size="2" style="line-height: 25px">
  <font face="arial" color="#3e80d7" size="2" style="line-height: 25px">
  <b style="line-height: 25px">&nbsp;Ad Rotator&nbsp;</b></font>元件产生一个Ad 
  Rotator物件,该物件可以自动处理网页上广告图案的转换。每当一个使用者开启或者重新载入该网页时,Ad Rotator会根据在Rotator 
  Schedule档案中定义的资讯来显示一个新的广告。</font></p>
  <p><font face="arial" color="#000000" size="2" style="line-height: 25px">
  您可以在Rotator Schedule档案中设定 
  URL参数来记录有多少使用者按下了每个广告,以此来引导使用者到Redirection档案。在设定这些参数时,每一次跳向某个URL广告的动作都会在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 size="2" style="line-height: 25px">
        Adrot.Dll</font></td>
        <td style="line-height: 25px"><font size="2" style="line-height: 25px">
        Ad Rotator元件。</font></td>
      </tr>
      <tr style="line-height: 25px">
        <td style="line-height: 25px"><font size="2" style="line-height: 25px">
        Rotator Schedule档案</font></td>
        <td style="line-height: 25px"><font size="2" style="line-height: 25px">
        一个文字档,它包含了广告的显示时间表和档案资讯。这个档案必须能在Web伺服器的虚拟路径下找到。</font></td>
      </tr>
      <tr style="line-height: 25px">
        <td style="line-height: 25px"><font size="2" style="line-height: 25px">
        Redirection档案</font></td>
        <td style="line-height: 25px"><font size="2" style="line-height: 25px">
        一个可选择的档案,它能够重新定向并且使得Ad Rotator元件可以记录每个广告共被使用者按下多少次。</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 AdRotator = Server.CreateObject  (&quot;MSWC.AdRotator&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;AdRotator&nbsp;</b></font></p>
  <p><font face="arial" color="#000000" size="2" style="line-height: 25px">定义由使用<font face="arial" color="#3e80d7" size="2" style="line-height: 25px"><b style="line-height: 25px">&nbsp;Server.CreateObject&nbsp;</b></font>而建立的<font face="arial" color="#3e80d7" size="2" style="line-height: 25px"><b style="line-height: 25px">&nbsp;AdRotator&nbsp;</b></font>物件之名称。</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;Border&nbsp;</b></font></td>
        <td style="line-height: 25px"><font size="2" style="line-height: 25px">
        指定广告边界的尺寸大小。</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;Clickable&nbsp;</b></font></td>
        <td style="line-height: 25px"><font size="2" style="line-height: 25px">
        指定该广告是否是一个超连结。</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;TargetFrame&nbsp;</b></font></td>
        <td style="line-height: 25px"><font size="2" style="line-height: 25px">
        指定显示该广告的框架名称。</font></td>
      </tr>
  </table>
  </center>
  <p><font face="arial" color="#3e76d7" size="2" style="line-height: 25px">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -