...

View Full Version : How to integrate these ads into .html web pages?



student
05-17-2007, 03:13 PM
Hello,
I have developed my own ads for my site.
http://downloadsonline.org/ads.php?keywords=business
These are like google adsense.

I could place them on my .php webpages using 'include' function.
But dont understand how to place them on my .html webpages.

Similar services are using javascript for this purpose.
Please inform me the code using which I can place them on any webpage.

Thank you very much for all your help.

_Aerospace_Eng_
05-18-2007, 06:59 AM
Would these be used for other people's sites or just yours?

student
05-18-2007, 07:51 AM
Would these be used for other people's sites or just yours?

I would like to use these ads on my own sites as well as on the sites of others if they are interested.

_Aerospace_Eng_
05-18-2007, 07:58 AM
Well google adsense uses an iframe so you could just use an iframe with the src being your ads. You'll just have to set the width and height to match the size of your ads.

student
05-18-2007, 08:09 AM
google adsense seem to be not using iframes:
It seem to be using javascript
this is an example:

<script type="text/javascript"><!--
google_ad_client = "pub-3440800076797949";
google_alternate_ad_url="http://www.w3schools.com/banners/bannerframe.asp?adpartner=aspall2";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_channel ="6605717322";
google_ad_type = "text";
google_color_border = "808080";
google_color_bg = "F1F1F1";
google_color_link = "900B09";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>

_Aerospace_Eng_
05-18-2007, 11:39 AM
Its an iframe. The javascript they use creates an iframe on the users' page. It just uses the variables to make the script more customizable. Take a look at their code in this file http://pagead2.googlesyndication.com/pagead/show_ads.js
If you don't know javascript, its about the 4th line down.

student
05-18-2007, 01:43 PM
Thank you very much _Aerospace_Eng_,
I am very much thankful to you.
I am now implementing the code with an iframe.

Thank you again

popoloco
05-30-2007, 02:46 PM
Don't show your google_ad_client +.+

google adsense seem to be not using iframes:
It seem to be using javascript
this is an example:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum