A practical advertisement alternation component in ASP

Source: Internet
Author: User
A practical advertisement alternation component in ASP
2000-06-14 · Wodeail Cpcw
Do you often see some of the company's ads online, and they can constantly change the various advertising content, this is the use of ASP's advertising alternating components, the use of alternating advertising components alternate advertising icon can better release your advertising and service promotion, easier to make others accept your ads, and can simply realize alternating display image.
(i) The usage and specific properties of the advertising alternating component:
1). GetAdvertisement method
Here the Server.CreateObject method is used for advertising alternating examples: Set ad=server.createobject ("MSWC. Adtotator "), where the SET command is used in conjunction with the Server.Create.CreateObject marker to create a reference to a Mswc.adrotator object. Advertising alternating components have a method: GetAdvertisement method. GetAdvertisement method manages and checks information from the dispatch file, when the GetAdvertisement method is invoked from a new page request or a request that is updated from a page. The GetAdvertisement method browses the dispatch file to display the next advertisement pattern, the syntax of the GetAdvertisement method is: getadvertisement ("filepath"), FilePath is the virtual path of the dispatch file.
2). Documents required for alternating advertising components
Rotation schedule file to manage the display frequency or display the title of the file (that is, ad alternate scheduling file); Redirection files are redirected to their URLs.
3). The specific method attribute of ad alternate dispatch file
This file is used to manage the frequency and specific attributes of advertising in an alternating component of an ad, as shown in the following table:
The name describes the function range
Redirect (URL) all images in the alternate schedule for submitting the browser default location all images
Width (fill in the exact size of the image to be displayed) set the pixel width of the image all images
Height (pixel value) set the pixel heights of the image all images
Border (table width) Set image border width all images
* Used to separate all images of specific display content
Adul Set Picture address a single image
Adhomepageurl set AD link address single image
Text set ad text to display a single image
Impresseions Set advertising picture display time than a single image
For specific examples, please see the following example
4). redirect File
The redirected file (redirection) will cause the browser to point to the destination address, where the address is determined in the dispatch file. This redirection file is used not only to point the requesting customer to the requested advertisement, but also to store various information about the requesting customer, such as the type of browser and IP address. This is where the browser is directed to the address specified in the dispatch file, such as Response.Redirect (Request.QueryString ("Myadurl"), in the Response.Redirect method. In addition, you can use a variety of analysis code or page register components to determine the number of clicks on redirected files.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.