2025-04-27 07:49:33 -04:00

124 lines
5.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<TITLE>Content Schedule File</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
TempString = navigator.appVersion
if (navigator.appName == "Microsoft Internet Explorer"){
// Check to see if browser is Microsoft
if (TempString.indexOf ("4.") >= 0){
// Check to see if it is IE 4
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
}
else {
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
}
}
else if (navigator.appName == "Netscape") {
// Check to see if browser is Netscape
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
}
else
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
//-->
</script>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub Window_OnLoad()
Dim frmContents
On Error Resume Next
If Not Parent Is Nothing Then
Set frmContents = Parent.Contents
If Not frmContents Is Nothing Then
frmContents.Window.TOCSynch_Click
End If
End If
End Sub
//--></SCRIPT><META NAME="DESCRIPTION" CONTENT="Internet Information Services reference information">
<META HTTP-EQUIV="PICS-Label" CONTENT='(PICS-1.1 "<http://www.rsac.org/ratingsv01.html>" l comment "RSACi North America Server" by "inet@microsoft.com <mailto:inet@microsoft.com>" r (n 0 s 0 v 0 l 0))'>
<META NAME="MS.LOCALE" CONTENT="EN-US">
<META NAME="MS-IT-LOC" Content="Internet Information Services">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H2><A NAME="_content_schedule_file"></A><SUP></SUP>Content Schedule File</H2>
<P>The Content Schedule file contains information that the <U>Content Rotator Component</U> uses to manage and display the specified content.</P>
<P>In this file you include any number of HTML content string entries. Each entry consists of two parts.&nbsp; The first part is a line that begins with double percentage signs (%%) and contains both the relative weight and any comments. Each item on these lines must be separated by a TAB character. The second part contains the HTML content itself. Each line ends in a carriage return.</P>
<P>After you change the Content Schedule File, the IIS Services may need to be restarted to pick up the change</P>
<H6>Syntax</H6>
<P>%% [#<I>Weight</I>] [//<I>Comments</I>]</P>
<P><I>ContentString</I></P>
<P><B>&nbsp;</B></P>
<H6>Parameters</H6>
<DL>
<DT><I>Weight</I></DT>
<DD>This optional parameter specifies a number between 0 and 10000 that indicates the relative weight of the HTML content string. The probability of a particular content string being displayed by the <U>Content Rotator Component</U> can be expressed as the <I>Weight</I> of that content string divided by the sum of <I>Weight </I>values for all entries in the Content Schedule file.
<P>For example, if a Content Schedule file contained three content strings with respective weights of 1, 3, and 4, the Content Rotator displays the first content string one-eighth of the time, the second string three-eighths of the time, and the third string half of the time.
<P>A <I>Weight</I> of 0 will cause a content entry to be ignored.
<P>If <I>Weight</I> is not specified, the default value is 1.
<P>If the sum of all weight values exceeds 10000, an error will be generated when the schedule file is accessed by a call to either the <B>GetAllContent</B> or <B>ChooseContent</B> methods.
<BR>
</DD>
<DT><I>Comments</I></DT>
<DD>This optional parameter contains comments about the entry. These comments are for development use only and are not displayed to the user. If you require more than one line of comments, you must start each additional comment line with a line delimiter (%%) followed by a comment delimiter (//).<BR>
</DD>
<DT><I>ContentString</I></DT>
<DD>The HTML content that the <U>Content Rotator Component</U> displays. For example, you can present a line of text, an image, or a sound.
<P><I>ContentString</I> may include one or more lines. The <U>Content Rotator Component</U> treats everything between blocks of double percent signs (%%) as a single HTML content string.
</DD>
</DL>
<H6>Example</H6>
<P>The following is an example of a Content Schedule file. Note that because the content strings can contain HTML tags, you can display any type of content that can be represented with HTML, including text, images, and hyperlinks.</P>
<P>--- ContRot.txt ---</P>
<PRE><CODE>%% // Because no value is set for Weight, the default value is 1.
Don't run with scissors.
%% #2 // Content can be more that one line long.
%% // Additional line of comments.
%% // Yet another line of comments.
&lt;FONT FACE="ARIAL,HELVETICA" SIZE="2"&gt;
Be like a
&lt;H1&gt;duck&lt;/H1&gt;
calm on the surface, paddling like mad underneath.
&lt;/FONT&gt;
%% #3 // This is our favorite image, so show it most often.
&lt;IMG SRC="http://zone.msn.com/graphics/hotgames_msn.gif"&gt;
%%
Here's the &lt;A HREF="/data/controt.txt"&gt;secret link&lt;/A&gt; to your content file.
</CODE></PRE>
<hr class="iis" size="1">
<p align="center"><em><a href="../../../common/colegal.htm">&copy; 1997-2001 Microsoft Corporation. All rights reserved.</a></em></p>
</BODY>
</HTML>