[This is preliminary documentation and subject to change]

Ad Rotator Component

The Ad Rotator component creates an Ad Rotator object that automates the rotation of advertisement images on a Web page. Each time a user opens or reloads the Web page, the Ad Rotator component displays a new advertisement based on the information you specify in a Rotator Schedule File.

You can record how many users click each advertisement by setting the URL parameter in the Rotator Schedule file to direct users to the Redirection File. When you specify this parameter, each jump to an advertiser's URL is recorded in the Web server activity logs.

For information on activity logs, see Logging Site Activity.

File Names
Adrot.dllThe Ad Rotator component.
Rotator Schedule FileA text file that contains the display schedule and file information for advertisements. This file must be available on a Web server virtual path.
Redirection FileAn optional file that implements redirection and enables the Ad Rotator component to record how many users click on each advertisement.

Syntax

SetAdRotator= Server.CreateObject( "MSWC.AdRotator" )

Parameters
AdRotator
Specifies the name of the AdRotator object created by the call to Server.CreateObject.
Properties
BorderSpecifies the size of the border around the advertisement.
ClickableSpecifies whether the advertisement is a hyperlink.
TargetFrameSpecifies the name of the frame in which to display the advertisement.

Methods
GetAdvertisementGets the specifications for the next scheduled advertisement from the data file and formats it as HTML.

© 1997-2001 Microsoft Corporation. All rights reserved.