HOME  |    TRAINING  |   FREE TUTORIALS   |   JOBS
Find out more about our new RSS feed.
FREE Tutorial
THE ASP ADROTATOR

CATEGORY
SEARCH OUR OTHER TUTORIALS

DESCRIPTION

A brief view of the syntax needed to operate the ASP AdRotator.
Click here to be kept informed of our new Tutorials.


TUTORIAL TAKEN FROM COURSE : PROGRAMMING WITH ASP

FULL COURSE DETAILS

After this course you should be able to: Use Active Server Pages to generate HTML, Use VBScript constructs to write ASP scripts, Interact with web users through HTML forms, Use various ASP components like Request, Server, Session, Connection, RecordSet and Command objects, Use session variables and cookies to store persistent information across user sessions, Access and update database information from ASP scripts, Use ActiveX controls to add dynamic behavior to a web site

TO ACCESS THE FULL COURSE AND HUNDREDS OF OTHERS, CLICK HERE.


ASP AdRotator Component

The AdRotator component creates an AdRotator object that displays a different advertisement, each time a user enters or refreshes a page. It allows an ASP page to display a different graphic each time this page is referenced from a browser. This technique is often used in sites that display advertisements. AdRotator component is used to display a series of images, as well as to provide a link from the displayed image to another URL.

AdRotator Component Method

GetAdvertisement

The GetAdvertisement method is used to manage and retrieve information from Ad Rotator Component.

Syntax: GetAdvertisement (ScheduleFilePath)

Example:


<%
set adrot=Server.CreateObject(\"MSWC.AdRotator\")
Response.Write(adrot.GetAdvertisement(\"ads.txt\"))
%>

AdRotator Component Properties

Border Property: The border property specifies the size of the borders around the advertisement. Syntax: Border (size)

Example:

<%
set adrot=Server.CreateObject(\"MSWC.AdRotator\")
adrot.Border=\"2\"
Response.Write(adrot.GetAdvertisement(\"ads.txt\"))
%>

Clickable Property: The Clickable Property specifies whether the advertisement is a hyperlink or simply a random image.

Syntax: Clickable (Value) Where value is True or False

Example:

<%
set adrot=Server.CreateObject(\"MSWC.AdRotator\")
adrot.Clickable=false
Response.Write(adrot.GetAdvertisement(\"ads.txt\"))
%>

TargetFrame: The TargetFrame is used to display the Name of the frame in which the AdRotator object is displayed.

Syntax: TargetFrame (frame) Where frame is the name of an HTML frame

Example:

<%
set adrot=Server.CreateObject(\"MSWC.AdRotator\")
adrot.TargetFrame=\"target=\'_blank\'\"
Response.Write(adrot.GetAdvertisement(\"ads.txt\"))
%>




5 RELATED COURSES AVAILABLE
HTML 4.0 INTRODUCTION
To create, format and publish a small website using HTML 4.0. You will learn to create web pages incorporating fo....
JAVASCRIPT PROGRAMMING
This training course aims to teach the reader the fundamentals of JavaScript. This course covers topics such as -....
MICROSOFT VISUAL BASIC V6 INTRODUCTION
To go from the fundamentals of Visual Basic programming to the threshold of Advanced level. Gaining in depth prog....
MICROSOFT VISUAL BASIC V6 ADVANCED - ORACLE BACKEND
To cover a series of advanced programming tasks and to fully command the VB programming language. Oracle is used ....
MICROSOFT VISUAL BASIC V6 ADVANCED - ACCESS BACKEND
To cover a series of advanced programming tasks and to fully command the VB programming language. Microsoft acces....
 
0 RELATED JOBS AVAILABLE
CONTACT US
Sunday 12th February 2012  © COPYRIGHT 2012 - website design by Website Design by Visualsoft