Nov 21, 2009
Pages: 1, 2

How Do You Have Static Ads?

free web hosting

Read Latest Entries..: (Post #12) by iGuest on Feb 19 2008, 08:22 AM.
What do you mean by static page? How Do You Have Static Ads? 2.What do you mean by Dynamic page?3.What do you mean by Activ page?4.What is/are limitation a static page and how it will be overcome by dynamic page.Explain the role of a acti page?5.Explain client/server side scripting and give the advantage/disadvantage of both?6.Explain get and post method with example?-reply by Nita patel...
read more.
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion > MODERATED AREA > The Internet > Advertising > Pay-Per-Click [CPC] Advertising

How Do You Have Static Ads?

TiKiRoKhaN
Like seen on www.trap17.net I have been trying to put static ads on all of my site without having to type
include (file.php)
and stuff like that, I want my ads to appear on HTML to!
How is it possible to make it like trap17.net did it, please help I need this bad ;(

Comment/Reply (w/o sign-up)

gaea
Sorry, but you weren't completely clear in what you wanted. Do you want to have one specific ad banner (being "static"?) in each area on your site? If so why don't you just use html to add the images in?

e.g. <img src="/images/ad1.jpg">

Then, if you wanted to change the ad displayed later you'd just upload another banner with the same name.

Another alternative would be to use iframes, which is, in essence, like embedding a second webpage within the first.

Your code would look something like:

<IFRAME src="adbanner.html" width="400" height="500" frameborder="1">
[Your web browser doesn't support iframes...lucky you!]
</IFRAME>

Then you'd just make adbanner.html with the add you wanted it. Or you could iframe to a php document if you wanted it to randomly display an ad.


Hope that was helpful. If not, please try and clearify your question.

Comment/Reply (w/o sign-up)

TiKiRoKhaN
I want my google adsense to be static on every page, thats what i was asking, on PHP and HTML

Comment/Reply (w/o sign-up)

gaea
QUOTE(TiKiRoKhaN @ Mar 18 2006, 11:16 PM) *

I want my google adsense to be static on every page, thats what i was asking, on PHP and HTML


Ah, ok. Then your best bet is to use Iframes like i suggested. Basicly, just make a webpage (html, php, whatever) that just displays adsense. Then use an iframe to include it where you want it.

Some guy did something kinda like that with SSI (http://forums.digitalpoint.com/showthread.php?t=3255) but i havn't tried that method myself.

Comment/Reply (w/o sign-up)

antwill
What are static ads? Do you mean the ads that are stuck in one place on everypage, like with some of those free web hosts how they place ads on your site? im sorry if its a stupid question but i do not understand what you mean. Can someone please tell me?

Comment/Reply (w/o sign-up)

TiKiRoKhaN
That was what I kind've meant antwill smile.gif

Comment/Reply (w/o sign-up)

gaea
Sorry, I miss understood you then tongue.gif

searched around on google for a little bit and i found:
QUOTE
[Syntax: ]auto_prepend_file string

Specifies the name of a file that is automatically parsed before the main file. The file is included as if it was called with the include() function, so include_path is used.

The special value none disables auto-prepending.


Code looks something like:
QUOTE
AddType application/x-httpd-php htm html
< FilesMatch "\.(html?)$" >
php_value auto_append_file "/the/path/that/leads/to/count.php "
</FilesMatch >


Hope that helped smile.gif

 

 

 


Comment/Reply (w/o sign-up)

antwill
Oh now i get what you mean, that seems like a pretty interesting subject i might add an ad on my site if i get the coding correct, but im not that good with coding so i will probably have alot of questions and problems.

Comment/Reply (w/o sign-up)

TiKiRoKhaN
QUOTE(gaea @ Mar 18 2006, 08:45 PM) *

Sorry, I miss understood you then tongue.gif

searched around on google for a little bit and i found:
Code looks something like:
Hope that helped smile.gif


So do I put that in a ht access file, and the PHP file is what the ads should be on?

Comment/Reply (w/o sign-up)

gaea
I'm not 100% certain because i've never done this before. From what i saw it looks like you can either put that into your php.ini, or into a .htaccess.

AddType application/x-httpd-php .php .htm .html
//Tells the server to treat html and htm files as php files.

< FilesMatch "\.(php?)$" >
php_value auto_prepend_file "/the/path/that/leads/to/count.php "
</FilesMatch >
//Adds your adpage (e.g. /the/path/that/leads/to/count.php) to beginning of all php files.

Might not have everything perfect, but i think that's close.

Comment/Reply (w/o sign-up)

Latest Entries

iGuest
What do you mean by static page?
How Do You Have Static Ads?

2.What do you mean by Dynamic page?
3.What do you mean by Activ page?
4.What is/are limitation a static page and how it will be overcome by dynamic page.Explain the role of a acti page?
5.Explain client/server side scripting and give the advantage/disadvantage of both?
6.Explain get and post method with example?

-reply by Nita patel

Comment/Reply (w/o sign-up)

TiKiRoKhaN
Turns out it uses htaccess!

http://www.developertutorials.com/tutorial...0525/page2.html

Enjoy! Im so glad, now i dont have to do a whole bunch of other stuff! ^^

Oh and if you wanted static google ads... Put this in the header html

QUOTE
<center><script type="text/javascript"><!--
google_ad_client = "pub-0154875139772011";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="1290573937";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>
<hr>

Or w/e ur settings are

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2
Similar Topics

Keywords : Static Ads


    Looking for static, ads

Searching Video's for static, ads
See Also,
advertisement


How Do You Have Static Ads?

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com