Previous PageNext Page

10.2 Content Rotator Component

The Content Rotator component creates a ContentRotator object that automatically rotates HTML content strings on a Web page. Each time a user requests the Web page, the object displays a new HTML content string based upon information that you specify in a Content Schedule File.
 
Because the content strings can contain HTML tags, you can display any type of content that HTML can represent: text, images, or hyperlinks. For example, you can use this component to rotate through a list of daily quotations or hyperlinks, or to change text and background colors each time the Web page is opened.
 
Because the ContentRotator object uses a random generator to select which of the weighted content strings is displayed, a string may be repeated. This is most likely to occur if there are few entries in the Content Schedule file, or if one entry is weighted much higher than the others.
 

10.2.1.1 Registry Settings

The control makes use of no registry settings.
 

10.2.1.2 Control Reference

The Content Rotator component is registered with the ProgId of "MSWC.ContentRotator". The following VBScript excerpt shows creating an instance of the control.
 

Set oVar = Server.CreateObject( "MSWC.ContentRotator" )

The Content Rotator ActiveX Control exposes the following properties and methods.
 

10.2.1.3 Properties

None
 

10.2.1.4 Methods

Choose Content
 
GetAllContent
 

Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page