please dont rip this site

Ad Rotator Component

The Ad Rotator component 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 REDIRECT parameter in the Rotator Schedule file. When you specify this parameter, each jump to an advertiser's URL is recorded in the Web server activity logs. For more information on activity logs, see Microsoft® Internet Information Server documentation.

File Names

Adrot.dll

The Ad Rotator component.

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.

Syntax

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

Parameters

AdRotator

Specifies the name of the object created by the call to Server.CreateObject.

Registry Entries

None.

Properties

Border

Specifies the size of the border around the advertisement.

Clickable

Specifies whether the advertisement is a hyperlink.

TargetFrame

Specifies the name of the frame in which to display the advertisement.

Methods

GetAdvertisement

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

Example

The following example displays a different advertisement each time a user views the Web page.

<%  Set ad = Server.CreateObject("MSWC.AdRotator") %>  
<%= ad.GetAdvertisement("/ads/adrot.txt") %>

The following HTML is generated by the GetAdvertisement method and added to the page's output, displaying the next advertisement in the Rotator Schedule file.

<A HREF="http://www.msn.com/isapi/adredir.asp?http://www.company.com/"> 

<IMG SRC="http://msnnt3web/ads/homepage/chlogolg.gif" 
ALT="Check out the new Technology Center"
WIDTH=440 HEIGHT=60 BORDER=1></A>

© Microsoft Corporation. All rights reserved.

See also:


file: /Techref/language/asp/comp/compref_1.htm, 4KB, , updated: 1996/11/21 18:01, local time: 2017/12/12 12:10,
TOP NEW HELP FIND: 
54.82.79.109:LOG IN

 ©2017 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE! / 

<A HREF="http://www.piclist.com/techref/language/asp/comp/compref_1.htm"> Ad Rotator Component</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

  PICList 2017 contributors:
o List host: MIT, Site host massmind.org, Top posters @20171212 RussellMc, Van Horn, David, Sean Breheny, James Cameron, alan.b.pearce, IVP, Neil, Bob Blick, David C Brown, John Gardner,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
 

Welcome to www.piclist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .