Jump to content

Publicidade


inici_php
 Share

Recommended Posts

Se for por BD, fazes uma Query à BD, e depois de obteres o que lá tem (presumo que seja o código HTML da publicidade) fazes um echo.

//A variavel $pub contém o HTML da publicidade, que vem da BD.
echo '<div id="publicidade"><div style="text-align: center;">Publicidade</div>'.$pub.'<div><a href="link">Deseja fazer publicidade aqui?</a></div></div>';

PS: Não respondo a perguntas por mensagem que podem ser respondidas no fórum.

Link to comment
Share on other sites

Ficaria assim:

//A variavel $pub contém o HTML da publicidade, que vem da BD.
echo '<div id="publicidade" style="border: 3px coral solid;"><div style="text-align: center; background-image: url(url_da_imagem.png); backgound-repeat: repeat-x;">Publicidade</div>'.$pub.'<div><a href="link">Deseja fazer publicidade aqui?</a></div></div>';

PS: Não respondo a perguntas por mensagem que podem ser respondidas no fórum.

Link to comment
Share on other sites

<div id="publicidade" style="border: 3px coral solid;"><div style="text-align: center; background-image: url(url_da_imagem.png); backgound-repeat: repeat-x;">Publicidade</div><img src="img.png"><div><a href="link">Deseja fazer publicidade aqui?</a></div></div>

Trocas o <img src="img.png"> pelo código que queres que apareça dentro da caixa. 😛

PS: Não respondo a perguntas por mensagem que podem ser respondidas no fórum.

Link to comment
Share on other sites

Isso é HTML e resolvia-se com uma pesquisa no Google. 😛

<div id="publicidade" style="border: 3px coral solid;"><div style="text-align: center; background-image: url(url_da_imagem.png); backgound-repeat: repeat-x;">Publicidade</div><a href="http://www.link_da_publicidade.com"><img src="img.png"></a><div><a href="link">Deseja fazer publicidade aqui?</a></div></div>

PS: Não respondo a perguntas por mensagem que podem ser respondidas no fórum.

Link to comment
Share on other sites

Tenta assim:

<div id="publicidade" style="border: 3px coral solid; width: auto; padding: 5px;"><div style="text-align: center; background-image: url(url_da_imagem.png); backgound-repeat: repeat-x;">Publicidade</div><a href="http://www.link_da_publicidade.com"><img src="img.png"></a><div><a href="link">Deseja fazer publicidade aqui?</a></div></div>

PS: Não respondo a perguntas por mensagem que podem ser respondidas no fórum.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.