Saturday, December 6, 2008

Adding banners to your sites

Most popular web sites today have rotating advertisement on their pages. Why not your site too? With the Ad Rotator component it is easy to add advertisement rotation to your pages. However, the functionality you get is very basic only – if you are really serious about making money with banners, you must get a full - blown banner management software.
The Ad Rotator component automates the rotation of a preset group of advertisements on a page (or group of pages). The component automatically place a new image on the page every time the page is opened or reloaded. The information about which ad to present – and therefore which image and link – is taken from the Rotation Schedule file.

Adding Ad rotation to a page is very simple. Besides the line for creating an instance of the Ad Rotator object, there is only one line you must add to the script code of your page, which is the second line.
Set adrot = server . createobject (“mswc.adrotator”)
Response . write (adrot.getadvertisement (“adrotfile.txt”)
The method getadvitisment inserts the image for the ad and the hyperlink. Therefore, the definition for this stuff must be in the rotation schedule file. Although this is correct, I am showing off the three properties that can be used for the Ad Rotator component prior to presenting the syntax for the rotator Schedule file.

No comments: