Previous PageNext Page

10.3 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.
 
The Ad Rotator relies on two additional files for parameters and functionality:
 

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

10.3.1.1 Registry Settings

The control makes use of no registry settings.
 

10.3.1.2 Control Reference

The Ad Rotator Control is registered with the ProgId of "MSWC.AdRotator". The following VBScript excerpt shows creating an instance of the control.
 

Set adRot = Server.CreateObject( "MSWC.AdRotator" )

The Ad Rotator Control exposes the following properties and methods.
 

10.3.1.3 Properties

Border
 
Clickable
 
TargetFrame
 

10.3.1.4 Methods

GetAdvertisement
 

Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page