Name

Border — objAdRot .Border = intSize

Synopsis

Sets the thickness (in pixels) of the line around your advertisement graphic.

Parameters

intSize

The thickness of the ad graphic's border in absolute number of pixels

Example

<%
' The following code creates an Ad Rotator object and sets
' border thickness to two pixels. When displayed, the ad
' graphic will be surrounded by a two-pixel border, regardless
' of the setting for the border width in the schedule file. 

Dim objAdRot

objAdRot = Server.CreateObject("MSWC.AdRotator")
objAdRot.Border = 2

%>

Notes

The default border thickness is whatever is set by the [BORDER] value in the Ad Rotator schedule file. If you set a value for the Border property, it will override that set in the schedule file.

In addition to the preceding example, see the full example at the end of this chapter.

Get ASP in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.