Previous in Contents Next in Contents

Using the TagList to Control How an Ad Displays

Two other reserved tags control how the ad is displayed in the browser.

The Ad.TargetFrame.frame reserved tag specifies the frame or window to be the target of ad clicks. If this tag is not specified, GetAd uses the default value _top, so that if the visitor clicks on the ad, the resulting page appears in main browser window. The options for this tag are described in the following table.

Tag Where click-through page displays
Ad.TargetFrame._top main browser window
Ad.TargetFrame._self same frame in which the ad itself was displayed
Ad.TargetFrame._parent immediate parent frame of the frame containing the ad
Ad.TargetFrame.frame frame named “frame”

The Ad.Border.n tag specifies the border size for the ad. The default border is one (1) pixel wide.

The following example requests a banner-sized ad, and displays it with a border of 2 pixels.

<% Dim TagList %>
<% TagList = Array("ad.size.Banner","ad.border.2") %>
<% =Ad.GetAd(null, Taglist, null) %>

© 1997-2000 Microsoft Corporation. All rights reserved.