Forum Moderators: martinibuster
Ideally, I would like to have a framed page where my logo, adsense ad and navigation bar are on the top frame and the news article is on the bottom frame. This way if I decide to remove the adsense code or change it, I could just do it once (by changing the top frame) and all of the pages with articles would be changed. However, this won't work since the adsense code has to be on the same frame as the main content.
A template would also work except that if I wanted to change the adsense code or delete it, the changes would not take effect on all the existing pages.
I know there must be some way to do this. I am using Frontpage 2000 to create and manage the website. Any suggestions.
A template would also work except that if I wanted to change the adsense code or delete it, the changes would not take effect on all the existing pages.
add this line to your template where you want your adsense code: <? include("google-ad.htm");?>
put the google-ad.htm file in your directory with your adsense code.
Then add this to your .htaccess file (in the same directory):
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html
Now your google ads will be pulled and displayed dynamically.