Article ID: 318285 - Last Review: June 29, 2007 - Revision: 1.2 HOW TO: Use the ASP Ad Rotator Installable Component in FrontPage 2002This article was previously published under Q318285 On This PageSUMMARY
This article describes how to use the Ad Rotator installable component for Active Server Pages (ASP) in Microsoft FrontPage. NOTE: You may receive an error message if you copy the examples directly from this article and paste them into FrontPage. The angle brackets (< and >) may appear as escaped HTML code (< and >). To work around this behavior, paste the script into a blank Notepad document, and then copy it from Notepad before you paste it into FrontPage. Creating a Rotator Schedule FileA rotator schedule file is a specialized list of advertisements to display. A double percentage sign denotes the separation of each advertisement section and a double slash indicates a comment.For additional information, see the Rotator Schedule File Syntax section later in this article. For additional information about the formatting you can use in this file, see the References section later in this article.
Creating a Redirection PageAlthough a redirection file is not necessary, it allows you to track a customer's actions. For example, you can create a database to log how many times a specific advertisement is selected. To do this, perform the following steps:
Creating the Ad Rotator Component
Inserting the Ad Rotator Component on the Page
Saving and Previewing the Page
MORE INFORMATIONWhat are Installable Components?You can create dynamic, interactive Web pages by using the components included with Active Server Pages (ASP) in your scripts. Two built-in components are Response and Request objects. Installable components also are included with IIS.Rotator Schedule File SyntaxNOTE: The syntax for this file is rather specialized, but easy to customize. The general format for this file is shown in the following table:
Line Value 1 Value 2 Description
------------------------------------------------------------------------
1 REDIRECT [URL] Specifies the path to the .asp file that
implements redirection.
2 WIDTH [Number] Width of the advertisement on the page,
in pixels. The default is 440 pixels.
3 HEIGHT [Number] Height of the advertisement on the page,
in pixels. The default is 60 pixels.
4 BORDER [Number] Width of the hyperlink border around the
advertisement, in pixels. The default is
a 1-pixel border.
5 * Signifies the end of the global
information section.
A1 [Image URL] The URL location of advertiser A's image
file.
A2 [Page URL] The URL location of advertiser A's home
page.
A3 [Text] Alternate text that is displayed if the
browser does not support graphics.
A4 [Number] A number between 0 and 10000 that
indicates the relative weight of
advertisement A.
B1 [Image URL] The URL location of advertiser B's image
file.
B2 [Page URL] The URL location of advertiser B's home
page.
B3 [Text] Alternate text that is displayed if the
browser does not support graphics.
B4 [Number] A number between 0 and 10000 that
indicates the relative weight of
advertisement B.
REFERENCES
For additional information about installable components for ASP, view the IIS documentation at the following Microsoft Web site:
http://www.microsoft.com/windows/windows2000/en/server/iis/htm/asp/comp275c.htm
(http://www.microsoft.com/windows/windows2000/en/server/iis/htm/asp/comp275c.htm)
| Article Translations
|
Back to the top
