"Claire Lescarret" <cl*****@nul.com> wrote in message
news:1112509071.3a4ac1b7eaa5824b15ee9f2b5ed2ab6f@t eranews...
On 4/1/05 6:39 AM, McKirahan wrote 74********************@comcast.com:
Why? Google may change their ".js" at any time.
That's true, thank you.
Why not just put your code (below) in a second "include" file?
What is "include"? Does that mean any different from having the code
inside html files?
google_ad_client = "pub-number";
google_alternate_color = "FFFFFF";
google_ad_width = 120;
google_ad_height = 240;
google_ad_format = "120x240_as";
google_ad_channel ="";
google_ad_type = "text";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "FF6600";
google_color_url = "006600";
google_color_text = "000000";
Thank you for your time,
C.
A JavaScript "include" is putting code in a separate file which will allow
its easy reuse.
Google does this via
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
You can do this by placing the following in, say, "myGoogle.js"":
google_ad_client = "pub-number";
google_alternate_color = "FFFFFF";
google_ad_width = 120;
google_ad_height = 240;
google_ad_format = "120x240_as";
google_ad_channel ="";
google_ad_type = "text";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "FF6600";
google_color_url = "006600";
google_color_text = "000000";
and the using this in your Web page:
<script type="text/javascript" src="myGoogle.js"></script>
To reuse it on other pages all you have to do is include 2 lines:
<script type="text/javascript" src="myGoogle.js"></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>