Ad Rotator Component Reference (d)-Properties of the Ad Rotator

Source: Internet
Author: User
Tags reference
The reference AdRotator object has the following properties:

I. Border
Two. Clickable
Three. TargetFrame


The 1.Border property allows the user to specify whether a border is around when the advertisement is displayed.

Grammar
Border = Size

Parameters
Size
Specifies the width of the border around the displayed advertisement. Its default value is set in the file header of the Rotator Schedule file.
Example
The following example shows an ad with no borders.

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

2.Clickable
The clickable property allows the user to specify whether to display the advertisement as a hyperlink.

Grammar
clickable = value

Parameters
Value
Specifies whether the advertisement is a hyperlink. This parameter can be one of the following values. The default value is TRUE. Value meaning
TRUE to display the advertisement as a hyperlink.
FALSE to display the advertisement as a hyperlink.


Example
The following example displays only advertisements as images, not as hyperlinks.

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


3. Target Framework
The TargetFrame property specifies the target frame to which the link will be loaded. This property completes the function equivalent to the TARGET parameter in the HTML statement.

Grammar
TargetFrame = Frame
Parameters
Frame
Specifies the name used to display the advertisement frame. This parameter can also be an HTML framework keyword, such as _top, _new, _child, _self, _parent, or
_blank. The default value is NO FRAME.
Example
The following example shows the advertisement in the frame adframe.

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



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.