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")%>