Using Ad Rotator AD components in ASP

Source: Internet
Author: User
There are three parts to consider when using the Ad Rotator component.
The Rotator Schedule File
The instantiation of the AdRotator object itself within the Web page where you want your banners
The redirection File
First-the Rotator Schedule File
This is the meat of the different banners and where they are sent when the graphic files are.
There are two sections-
The "the" the "parameters" of the "lists" advertisement images in the rotation schedule,
Line by line.
The name of the redirection File.
The second line is the width of the graphic
The third line is the height of the graphics
The fourth line is the border around the graphics-for a one pixel border and you have put 1 for no
Border, put in 0
Example:
REDIRECT Redirect.asp
Width 468
Height 60
Border 0
The second section must is separated from the the "A separate line", by a asterisk (*). This
The contains all is the data for each of the graphics. For each banner/ad graphics, there are four lines.
The line-the URL of the graphic itself (yun_qi_img/myfirstbanner.gif)
Second line-the URL to where the "viewer is redirected" when he/she clicks on the banner. This can be a
Dash (-) If there is no page to go to (though I couldn ' t wonder why you ' d does this, IMHO)
Third line-the mouseover text that would appear
Fourth line-the weight of the graphic banner in respect to the others. According to Microsoft-
"For example, if a rotator Schedule file contains three ads with impressions set to 2, 3, and 5, the"
Advertisement is displayed percent of the ' time ', the second percent of the time, and the third 50
Percent of the time.
Once This page are finished, you must save it and name it. For this example, I have named mine ' Adrot.txt '.
It doesn ' t have to is an ASP or HTML file....no headers are involved, just the plain text.
Related Article

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.