Create an Adrotator

Posted on February 16th, 2009 in ASP by admin

Step 1 :

Save the following as adrotator.txt , create 3 gifs 480 by 60 called 02 , 03 and 04 , here are some examples I used before

***

REDIRECT adRedirect.asp
WIDTH 480
HEIGHT 60
BORDER 0
*
http://tutorials.programmingsite.co.uk/02.gif
http://tutorials.programmingsite.co.uk
Visit tutorials.programmingsite.co.uk
20
http://tutorials.programmingsite.co.uk/03.gif
http://tutorials.programmingsite.co.uk
visit tutorials.programmingsite.co.uk site now
40
http://tutorials.programmingsite.co.uk/04.gif
http://tutorials.programmingsite.co.uk
tutorials.programmingsite.co.uk resource site
40

Step 2 :

Create your redirect file , in this case adRedirect.asp and enter the following

<%

Response.Redirect(Request.QueryString(”url”))
%>

Step 3 :

Put this code on the pages you wish the banner to be displayed

<%

Dim objAdRotator

‘create an instance of adrotator

Set objAdRotator = Server.CreateObject(”MSWC.AdRotator”)

‘get the ad from the file

Response.Write objAdRotator.GetAdvertisement(”adrotator.txt”)

‘destroy the object

Set objAdRotator = Nothing

%>

Related posts:

  1. Create an XML file In this example we are going to create a simple...
  2. Open internet explorer and display a webpage using powershell Open internet explorer and display a webpage, in this case...
  3. Saving a CSV file to a database Create a database in access called stock.mdb . Now create...

Related posts brought to you by Yet Another Related Posts Plugin.

Post a comment