sedex 0 Denunciar post Postado Fevereiro 18, 2006 Galera to com um probleminha muito curioso.... nessa include aparece o titulo da noticia e uma descrição de 80 caracteres da noticia, so que eu to tentando mudar a cor do titulo, mas nao aceita... o titulo fica numa cor cinza claro, e nao a nada que eu faça que mude de cor... <?php require_once("conexao.inc.php"); require_once("funcao.php"); conexao_mysql($host,$user,$pass,$db); ?> <html> <head> <title>Takeda Engenharia</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <?php //realiza a consulta para localizar uma noticia com imagem e com o campo imagem igual a 1 em //ordem decrescente com relação a data $consulta_sql = mysql_query("SELECT * FROM portifolio WHERE imagem=1 ORDER BY data DESC LIMIT 0,5"); if($consulta_sql){ while($row = mysql_fetch_array($consulta_sql)){ if ($contacor % 2 == 1){ $coratual = "#FFFFFF"; }else{ $coratual = "#EEEEEE"; } $contacor++; $id = $row['id']; $diretorio = $row['diretorio']; $largura = $row['largura']; $altura = $row['altura']; $titulo = $row['titulo']; $secao = $row['secao']; $titulo = $row['titulo']; $conteudo = $row['conteudo']; $data = $row['data']; ?> <table width="270" height="55" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="19" colspan="2" nowrap bgcolor="<?=$coratual?>"><?php print('<a href="exibe_portifolio.php?noticia=' . $id . '">' . ($titulo) . '</a>'); ?></td> </tr> <tr> <td width="237" height="32" nowrap bgcolor="<?=$coratual?>"><?php print(nl2br(substr($conteudo, 0, 110) . '...')); ?></td> <td width="33" align="right"><?php print('<a href="exibe_portifolio.php?noticia=' . $id . '">'); ?><img align="center"src="image/vai.gif" border="0"></a></td> </tr> <tr> <td height="3" colspan="2"><img src="image/pontim_270.gif" width="270" height="3" border="0"></td> </tr> <?php } } else { print("Erro na solicitação da consulta 1!!! <br>".mysql_error()); } ?> </table> </body> </html> Compartilhar este post Link para o post Compartilhar em outros sites
sedex 0 Denunciar post Postado Fevereiro 18, 2006 Galera to com um probleminha muito curioso.... nessa include aparece o titulo da noticia e uma descrição de 80 caracteres da noticia, so que eu to tentando mudar a cor do titulo, mas nao aceita... o titulo fica numa cor cinza claro, e nao a nada que eu faça que mude de cor... <?php require_once("conexao.inc.php"); require_once("funcao.php"); conexao_mysql($host,$user,$pass,$db); ?> <html> <head> <title>Takeda Engenharia</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <?php //realiza a consulta para localizar uma noticia com imagem e com o campo imagem igual a 1 em //ordem decrescente com relação a data $consulta_sql = mysql_query("SELECT * FROM portifolio WHERE imagem=1 ORDER BY data DESC LIMIT 0,5"); if($consulta_sql){ while($row = mysql_fetch_array($consulta_sql)){ if ($contacor % 2 == 1){ $coratual = "#FFFFFF"; }else{ $coratual = "#EEEEEE"; } $contacor++; $id = $row['id']; $diretorio = $row['diretorio']; $largura = $row['largura']; $altura = $row['altura']; $titulo = $row['titulo']; $secao = $row['secao']; $titulo = $row['titulo']; $conteudo = $row['conteudo']; $data = $row['data']; ?> <table width="270" height="55" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="19" colspan="2" nowrap bgcolor="<?=$coratual?>"><?php print('<a href="exibe_portifolio.php?noticia=' . $id . '">' . ($titulo) . '</a>'); ?></td> </tr> <tr> <td width="237" height="32" nowrap bgcolor="<?=$coratual?>"><?php print(nl2br(substr($conteudo, 0, 110) . '...')); ?></td> <td width="33" align="right"><?php print('<a href="exibe_portifolio.php?noticia=' . $id . '">'); ?><img align="center"src="image/vai.gif" border="0"></a></td> </tr> <tr> <td height="3" colspan="2"><img src="image/pontim_270.gif" width="270" height="3" border="0"></td> </tr> <?php } } else { print("Erro na solicitação da consulta 1!!! <br>".mysql_error()); } ?> </table> </body> </html> Compartilhar este post Link para o post Compartilhar em outros sites
micox 2 Denunciar post Postado Fevereiro 18, 2006 Isto deveria ter sido perguntado no fórum de php, mas tudo bem. 1) Seu site está completamente fora das webstandards 2) Para títulos, o correto é usar as tags "h" (h1,h2,h3...) 3) você pode tentar quebrar o galho alterando dessa forma: <td height="19" colspan="2" nowrap> <a href="exibe_portifolio.php?noticia=<?=$id?>"> <h2 style="background-color:<?=$coratual?>;"><?=$titulo?></h2> </a></td> Compartilhar este post Link para o post Compartilhar em outros sites
sedex 0 Denunciar post Postado Fevereiro 18, 2006 mano... eu concordo contigo!!!Mas eu nem sei por onde começar para aprender o webstandards.Mas mano... o problema nao é o tamanho do titulo!!!O problema é o seguinte:Eu posso usar a instrução <font>, posso usar class, css, color.NADA MUDA A COR DO TITULO! o titulo esta numa cor cinza #999999 e nada tira essa cor dele!eu ja apaguei todas as informações da pagina, deixei apenas as instruções do php, mas mesmo assim o titulo continua na mesma cor!ELE APENAS MUDA DE TAMANHO E DE FONTE, MENOS A COR Compartilhar este post Link para o post Compartilhar em outros sites
Eclesiastes 2 Denunciar post Postado Fevereiro 18, 2006 E como você está tentando mudar a cor do texto? Compartilhar este post Link para o post Compartilhar em outros sites
Giovani 104 Denunciar post Postado Fevereiro 18, 2006 Mas eu nem sei por onde começar para aprender o webstandardsE ae sedex, se você quiser começar tem um link muito bom, leia todos esses artigos e mão na massa.Tb recomendo esses links: w3c maujor bruno dulcetti tableless Começa dando uma olhada nesses links, depois você vai ver q tem muita coisa aqui no forum.....na net!!!! Abraços!!! http://forum.imasters.com.br/public/style_emoticons/default/thumbsup.gif Compartilhar este post Link para o post Compartilhar em outros sites
micox 2 Denunciar post Postado Fevereiro 18, 2006 NADA MUDA A COR DO TITULO!o titulo esta numa cor cinza #999999 e nada tira essa cor dele!Passe o link pragente ver isso aí funcionando.Deve ser algum arquivo css que tá mudando. Mas podem ser várias coisas também... Posta o link ae...Caso não tenha o link, poste o html que resulta após o processamento php... Compartilhar este post Link para o post Compartilhar em outros sites
Giovani 104 Denunciar post Postado Fevereiro 18, 2006 É ter um link é sempre muito bom!!! Ajuda na hora de ser ajudado!!!! Abraços!!! http://forum.imasters.com.br/public/style_emoticons/default/joia.gif Compartilhar este post Link para o post Compartilhar em outros sites
sedex 0 Denunciar post Postado Fevereiro 19, 2006 VOU COLOCAR ELE NO AR AGORA.... MAS ENQUANTO ISSO NA BAT CAVERNA... O CODIGO HTML GERADO PELA PAGINA <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Takeda</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="takeda.css" rel="stylesheet" type="text/css"> <link href="takeda1.css" rel="stylesheet" type="text/css"> </head> <style> body { scrollbar-face-color: #dee5eb; scrollbar-highlight-color: #cad5df; scrollbar-shadow-color: #93a9be; scrollbar-3dlight-color: #eef1f4; scrollbar-arrow-color: #4f6a83; scrollbar-track-color: #eff2f5; scrollbar-darkshadow-color: #4f6a83; } </style> <body link="#669999" vlink="#669999" alink="#669999" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table width="215" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><table width="215" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="215"><img src="image/pixel.gif" width="1" height="1"></td> </tr> <tr> <td height="19"> <div align="left"><font color="#669999" size="3" face="Arial, Helvetica, sans-serif"><strong>Projetos finalizados</strong></font></div></td> </tr> <tr> <td height="10"></td> </tr> <tr> <td height="18"> <div align="center"> <html> <head> <title>Takeda Engenharia</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="css/takeda1.css" rel="stylesheet" type="text/css"> <link href="css/takeda.css" rel="stylesheet" type="text/css"> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table width="230" height="55" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="19" colspan="2" nowrap> <font color="#FF0000"><a href="exibe_portifolio.php?noticia=1"> <h5 style="background-color:#EEEEEE;">Res. Gran Ville - Esq. com Rua Jatobá</h5> </a></font> </td> </tr> <tr class="atexto01"> <td width="230" height="32" nowrap bgcolor="#EEEEEE">Estou testando o sistea de portifolio pra ver se fica bom com um sistema mais ar...<font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="exibe_portifolio.php?noticia=1"><img align="center"src="image/vai.gif" border="0"></a></font></td> </tr> <tr> <td height="3" colspan="2"><img src="image/pontim_270.gif" width="230" height="3" border="0"></td> </tr> <table width="230" height="55" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="19" colspan="2" nowrap> <font color="#FF0000"><a href="exibe_portifolio.php?noticia=2"> <h5 style="background-color:#FFFFFF;">Res. Gran Ville - Esq. com Rua Jatobá2</h5> </a></font> </td> </tr> <tr class="atexto01"> <td width="230" height="32" nowrap bgcolor="#FFFFFF">Estou testando o sistea de portifolio pra ver se fica bom com um sistema mais ar...<font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="exibe_portifolio.php?noticia=2"><img align="center"src="image/vai.gif" border="0"></a></font></td> </tr> <tr> <td height="3" colspan="2"><img src="image/pontim_270.gif" width="230" height="3" border="0"></td> </tr> <table width="230" height="55" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="19" colspan="2" nowrap> <font color="#FF0000"><a href="exibe_portifolio.php?noticia=3"> <h5 style="background-color:#EEEEEE;">Res. Gran Ville - Esq. com Rua Jatobá2</h5> </a></font> </td> </tr> <tr class="atexto01"> <td width="230" height="32" nowrap bgcolor="#EEEEEE">Estou testando o sistea de portifolio pra ver se fica bom com um sistema mais ar...<font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="exibe_portifolio.php?noticia=3"><img align="center"src="image/vai.gif" border="0"></a></font></td> </tr> <tr> <td height="3" colspan="2"><img src="image/pontim_270.gif" width="230" height="3" border="0"></td> </tr> <table width="230" height="55" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="19" colspan="2" nowrap> <font color="#FF0000"><a href="exibe_portifolio.php?noticia=4"> <h5 style="background-color:#FFFFFF;">Res. Gran Ville - Esq. com Rua Jatobá2</h5> </a></font> </td> </tr> <tr class="atexto01"> <td width="230" height="32" nowrap bgcolor="#FFFFFF">Estou testando o sistea de portifolio pra ver se fica bom com um sistema mais ar...<font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="exibe_portifolio.php?noticia=4"><img align="center"src="image/vai.gif" border="0"></a></font></td> </tr> <tr> <td height="3" colspan="2"><img src="image/pontim_270.gif" width="230" height="3" border="0"></td> </tr> </table> </body> </html> </div></td> </tr> </table></td> </tr> <tr> <td bgcolor="#EFEFEF" class="textomenor"> <div align="center"><a href="galeria/index.php" target="_blank">Veja as imagens em nossa galeria</a></div></td> </tr> </table> </body> </html> Esse é o link: http://www.takeda.eng.br A opçao do menu é PORTIFOLIO tem o titulo, e uma breve descrição...... O QUE EU QUERO É COLOCAR A COR DO TITULO DA NOTICIA IGUAL AO TITULO DA NOTICIA DE SERVIÇOS Compartilhar este post Link para o post Compartilhar em outros sites
sedex 0 Denunciar post Postado Fevereiro 19, 2006 Galera, acho que só o MESTRE DOS MAGOS... Esse ai é como está no meu codigo do titulo: <?php require_once("conexao.inc.php"); require_once("funcao.php"); conexao_mysql($host,$user,$pass,$db); ?> <html> <head> <title>Takeda Engenharia</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="css/takeda1.css" rel="stylesheet" type="text/css"> <link href="css/takeda.css" rel="stylesheet" type="text/css"> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <?php //realiza a consulta para localizar uma noticia com imagem e com o campo imagem igual a 1 em //ordem decrescente com relação a data $consulta_sql = mysql_query("SELECT * FROM portifolio WHERE imagem=1 ORDER BY data DESC LIMIT 0,5"); if($consulta_sql){ while($row = mysql_fetch_array($consulta_sql)){ if ($contacor % 2 == 1){ $coratual = "#FFFFFF"; }else{ $coratual = "#EEEEEE"; } $contacor++; $id = $row['id']; $diretorio = $row['diretorio']; $largura = $row['largura']; $altura = $row['altura']; $titulo = $row['titulo']; $secao = $row['secao']; $titulo = $row['titulo']; $conteudo = $row['conteudo']; $data = $row['data']; ?> AQUI COMEÇA A EXIBIÇÃO DO TITULO QUE NAO MUDA A COR DE JEITO NENHUM (ele muda de tamanho e fonte, mas a cor ele nao aceita). <table width="230" height="55" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="19" colspan="2" nowrap> <font color="#FF0000"><a href="exibe_portifolio.php?noticia=<?=$id?>"> <h5 style="background-color:<?=$coratual?>;"><?=$titulo?></h5> </a></font> </td> </tr> Pela logica de html, com a instrução <font color="FF0000">, a cor do titulo tinha que ser VERMELHA. Esse é o link: http://www.takeda.eng.br A opçao do menu é PORTIFOLIO tem o titulo, e uma breve descrição...... O QUE EU QUERO É COLOCAR A COR DO TITULO DA NOTICIA IGUAL AO TITULO DA NOTICIA DE SERVIÇOS Compartilhar este post Link para o post Compartilhar em outros sites
micox 2 Denunciar post Postado Fevereiro 19, 2006 Cara, seu código tá MUITO feio. Não sei se você percebeu, mas está com 2 headers!!!! Percebeu??? Talvez isso influencie e cause os problemas que está falando. Já o que deve mudar de cor eu não entendi. Seria nestas partes?: <td height="19" colspan="2" bgcolor="#EEEEEE"><a href="exibe_portifolio.php?noticia=1">Res. Gran Ville - Esq. com Rua Jatobá</a></td> Caso sejam nestas partes. Faça da forma que eu te expliquei no post anterior e atualize sua página pra vermos comé que ficou... Compartilhar este post Link para o post Compartilhar em outros sites
sedex 0 Denunciar post Postado Fevereiro 19, 2006 MANO ACHO QUE EU CONSEGUI DESCOBRIR O QUE TAVA FAZENDO ESSE ERRO....EU TINHA CRIADO UM CSS e colocado um copia dentro da pasta CSS, e esqueci de tirar a outra!!!Acho que a pagina estava buscando a mesma foha (nomes iguais), mas essas possuiam atributos diferentes, pois toda a alteração era marcada dentro da folha de stilos que estava dentro da pasta css.Mas galera, eu agradeço muito!!!Obrigado Compartilhar este post Link para o post Compartilhar em outros sites
sedex 0 Denunciar post Postado Fevereiro 19, 2006 MANO ACHO QUE EU CONSEGUI DESCOBRIR O QUE TAVA FAZENDO ESSE ERRO....EU TINHA CRIADO UM CSS e colocado uma copia dentro da pasta CSS, e esqueci de tirar a outra!!!Acho que a pagina estava buscando a mesma foha (nomes iguais), mas essas possuiam atributos diferentes, pois toda a alteração era marcada dentro da folha de stilos que estava dentro da pasta css.Mas galera, eu agradeço muito!!!Obrigado Compartilhar este post Link para o post Compartilhar em outros sites