Sun
ONE Active Server Pages Product Home Page Developer Site Version
 

ContentsPreviousNextIndex



Parameters: ASP Content Rotator Component Content Schedule File


The Content Rotator component Content Schedule file parameters are listed below.

Weight

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 ContentRotator object can be expressed as the Weight of that content string divided by the sum of Weight values for all entries in the Content Schedule file.

For example, if a Content Schedule file contains 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.

A Weight of 0 will cause a content entry to be ignored.

If Weight is not specified, the default value is 1.

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 GetAllContent or ChooseContent methods.

Comments

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 (//).

ContentString

This is the HTML content that the ContentRotator object displays. For example, you can present a line of text, an image, or a sound.

ContentString may include one or more lines. The ContentRotator object treats everything between blocks of double percentage signs (%%) as a single HTML content string.

In this section:

Example: ASP Content Rotator Component Content Schedule File Parameters



ContentsPreviousNextIndex