AD Rotator Component Reference

zhaozj2021-02-16  89

Ad Rotator Component Reference www.lucky365.net 2002-7-24 Auspicious 365

The AD Rotator component creates an AD Rotator object that automatically rotates the advertisement image on the web page. When the user opens or reloads the web page each time, the AD Rotator component will display a new ad according to the information specified in the Rotator Schedule file. How many users can be recorded for each ad, the method is to set a URL parameter in the Rotator Schedule file, orient the user to the redirect file. If this parameter is specified, the corresponding record is made in the web server's activity log each time you jump to a URL of the web server. For more information on the event log, see Record Web Site Activity. File name adrot.dll ad Rotator component. Redirect file optional files to implement redirection and allow AD Rotator Components to record how many users are clicked accessed. The Rotator Schedule file text file contains the display plan and file information of the ad. This file must be available on a virtual path of the web server. Syntax SET ADROTATOR = Server.createObject ("mswc.adrotator") Parameters ADROTATOR specifies the name of the ADROTATOR object, this object is created by calling Server.createObject. The registry key is not. Properties Border specifies the size of the ad border. Clickable Specifies whether the ad is hyperlink. TargetFrame Specifies the name of the frame that displays the ad. Method getadvertisement Gets a detailed description of the next planned advertisement from the data file and formatted it into an HTML format. Example The following example displays different ads when the user views a web page. <% Set ad = server.createObject ("mswc.adrotator")%> <% = ad.getadvertisement ("/ ads / ad.txt")%> The following HTML is generated by the getadvertisement method and is added to the web. To display the next ad in the Rotator Schedule file.  check out the new technology center Rotator Schedule file included AD Rotator component for managing and displaying various advertising images. In this document, the user can specify the details of the ad, such as the spatial size of the advertisement, the use of the image file and the percentage of the display time of each file. The Rotator Schedule file consists of two parts. The first part settings are used to use parameters of all advertising images in the rotation schedule; the second part specifies the file and location information of each individual advertisement, and the percentage of each ad's display time should be received. These two parts are separated by a line of all as an asterisk (*). There are four global parameters in the first part, and each parameter consists of a keyword and value. All parameters are optional. If the user does not specify the value of the global parameter, the AD Rotator will use the default value. In this case, the first line of the file must have only one asterisk (*). Grammar

[Redirect URL] [Width NumWidth] [Height NumWidth] [Border NumBorder] * Adurl AdHomePageURL TEXT IMPRESSIONS parameter URL Specifies the path to the Dynamic Link Library (.DLL) or execute the redirected application (.asp) file. This path must be a complete (http: //myserver/mydir/redirect.asp) or a relatively virtual directory (/MYDIR/Redirect.ASP). NumWidth specifies the width of the advertisement on the web page in pixels. The default is 440 pixels. NumHeight Specifies the height of the advertisement on the web page in pixels. The default is 60 pixels. Numborder Specifies the border width of the ads to four-week hyperlinks in pixels. The default is 1 pixel. If this parameter is set to 0, there will be no border. ADURL advertising image file location. AdHomePageurl The location of the homepage. If the advertiser does not have a homepage, write a hockey (-) in this line, pointing out that the ad does not have a link. Text Displayed in the browser does not support graphics or closes the image function. Impressions from 0 to 4, 294, 967, 295, pointing to the relative weight of the advertisement. For example, if the Rotator Schedule file contains 3 ads, its Impressions is set to 2, 3 and 5, respectively, and the first advertisement takes up 20% display time, the second occupies 30% display time, the third occupied 50% Show time. Example The following script demo uses the Rotator Schedule file to display various ads and how to include redirect files. --- ADROT.TXT ---

REDIRECT /scripts/adredir.asp WIDTH 440 HEIGHT 60 BORDER 1 * http: //kabaweb/ads/homepage/chlogolg.gif http://www.bytecomp.com/ Check out the ByteCompTechnology Center20 http: // kabaweb / ads / homepage / gamichlg.gif -Sponsored by Flyteworks20 http: //kabaweb/ads/homepage/ismodemlg.gif http: // www.proelectron.com/28.8 internal PC modem, only $ 99 80 http: // kabaweb / ads / homepage / Spranklg.gif http://www.clocktower.com/the # 1 SPORTS SION The NET 10 Redirect file is the file created by the user. It typically contains scripts used to parse query strings sent by the ADROTATOR object and redirect the user to the URL associated with the ad hit the user. The user can also include the script in the reset file to count the number of users of a particular advertisement and save this information to a file on the server. Example The following example redirects the user to the home page of the advertiser. --- Adredir.asp --- <% response.redirect (Request.QueryString ("URL"))%> ADROTATOR object has the following properties: 1. Border II .clickle 3.TargetFrame 1. Border attribute allows the user to specify an ad Whether it is a border with a border. Syntax Border = Size Parameters Size Specifies the border width around the displayed advertisement. Its default value is set in the file header of the Rotator Schedule file. Example The following example shows an advertisement without a border. <% Set ad = server.createObject ("mswc.adrotator") Ad.Border = 0%> <% = ad.getadvertisement ("/ ads / adrot.txt")%> 2.Clickable Clickable property allows users to specify whether Advertising is displayed as hyperlink. Syntax Clickable = Value Parameter Value Specifies whether the ad is hyperlink. This parameter can be one of the following values. The default is True. Value Significance: TRUE Displays the ad as hyperlink. FALSE will not display the ad as a hyperlink. Example The following example only uses the ad as an image display instead of an hyperlink. <% Set ad = server.createObject ("mswc.adrotator") ad.clickable = false%> <% = ad.getadvertisement ("/ ads / adrot.txt")%> 3. Target Framework TargetFrame Properties Specify link will be Loaded target frame. This property is completed with the Target parameter in the HTML statement. Syntax TargetFrame = Frame Parameter Frame Specifies the name to display the ad frame. This parameter can also be an HTML frame keyword, such as _top, _new, _child, _self, _parent or _blank. The default is NO FRAME. Example The following example displays the advertisement in the framework ADFRAME.

转载请注明原文地址:https://www.9cbs.com/read-12652.html

New Post(0)