Page 1 of 1

Cover Hosting Ads Banner

Posted: Thu Feb 05, 2009 12:44 am
by phpBginner
Is there a command, line, or code within the php to cover up hosting banner on free hosting?

I'm using GoDaddy. I got a 2 column CSS script from some site and my header cover up the ads/banner which i like a lot.

I'm not sure which part of the script that actually does that. Maybe the overflow:hidden or position:absolute?

It sure does the trick tho, I just wish I could do it with php.

Posted: Thu Feb 05, 2009 6:28 am
by Henrie
I can't tell you for sure (not tested it) but i think it is

In #head and #head2 it is position:absolute; in combination with top:0; which places those at the top of your page.
And the z-index:5 makes sure it hovers over the ads.

If you don't want to cover the ads. Change the top:0 to the height of the ads (top:100px;)

Make sure to also change
#content {top:100px;} to #content {top:200px;}
and
#left {top:100px;} to #left {top:200px;}

or the left column and the content will be covered by your head

Greetings,
Henrie

Posted: Fri Feb 06, 2009 6:37 am
by phpBginner
I guess my question is:
Is it possible with php if it is possible with css?

Posted: Fri Feb 06, 2009 6:58 am
by Henrie
PHP is just a scripting language. I don't know a way to cover it with pure PHP functions (don't think it is possible).
PHP is mostly just a way to gather dynamic content and present it to the viewer, for which html and css is used in webpages.

I am not sure why you don't want to use css. I don't know what you want to accomplish by using PHP-functions instead of css. They are totally different, PHP is used for gathering and manipulating information while css is used for styling information (and html is used for displaying information).
So i hope my answer is the right answer to your question.

Greetings,
Henrie

Posted: Fri Feb 06, 2009 12:59 pm
by phpBginner
I am using html/css. As mentioned earlier it does me really good. When it comes to Guestbook, Picture view and etc, all those are in php instead of html extension. That would be great if i can find a script in html format. Does that make sense at all? As I researched, it seems like the only way to have php in a html page is to embed which i did with iframe.

Look at the difference:

HTML/CSS : www.cavanh.com ......................banner is hidden behind.
PHP: www.cavanh.com/guest.html ............ banner is shown in embedded.
PHP: www.cavanh.com/guestbk/gbook.php

Posted: Fri Feb 06, 2009 3:07 pm
by Klemen
No, it can't be done with PHP. And please no more talking about things that break your hosts' terms of service.