Ads are one reason you may want to use include files. Perhaps your
advertising strategy does not require the use of an ad rotator. Many
of the ad companies today use code that is rather difficult to rotate.
Here is where an include file would come in handy.
Take a look at the ads on this page. If you were to cruise
around this site you would notice that all the pages have banner
ads in the same location of each page. With some ads they expire after
a given amount of time. Rather than having to open every page in my
website, I simply open the include file for the particular ad I need
to change, insert the new ad code and save it. Now all of the pages
are updated in just a minute or two. Simple huh?
Here's what to do. Create a directory in the root of the web to place
your include files in a directory named include. You can name it anything you like
and it's probably best to name it something other than include but, for
this demonstration we will call it include. Next, create a page named
ads.htm and place your ad code in it. Now save this page in the
include directory.
Now open up the pages you want to display the ad on and decide
where it should go. In the html of the page insert this line:
<!-- #Include Virtual="include/ads.htm" -->
That's all there is to it. Now you can update all your pages at one
time by simply editing the one page named ads.htm