Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Rodrigo Logobyfogo

[Resolvido] Problema de border no firefox e no chrome

Recommended Posts

Problema de border no firefox e no chrome

Olá , boa tarde.

Estou com um problema com relação a espessura do comando border="0".

Este comando esta reconhecendo normalmente no I.E. 9 e em outras versões, porém no Firefox e no Chrome aparece uma espessura na linha da tabela que não deveria ocorrer.

Segue código abaixo:

 

<table width="903" border="0" align="center" cellpadding="0" cellspacing="no" bordercolor="#999999" bgcolor="#FFFFFF">

 

Alguém poderia me dizer se há algo errado com o código ou se eu devo acrescentar algo para que o Firefox e o Chrome reconheçam a espessura "0" no border?

 

Atenciosamente,

 

Rodrigo

Compartilhar este post


Link para o post
Compartilhar em outros sites

Fiz uma tabela usando esse código e ficou normal. Posta todo o código da tabela e um print de como fica no IE e nos outros navegadores.

 

E recomendo utilizar um Reset CSS.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Fiz uma tabela usando esse código e ficou normal. Posta todo o código da tabela e um print de como fica no IE e nos outros navegadores.

 

E recomendo utilizar um Reset CSS.

Obrigado pela resposta.

Segue o código:

 

</tr>
     </table>
     <table width="100%" border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td bgcolor="#094D7E"><center>
                  </center>          </td>
       </tr>
     </table>    </td>
 </tr>
 <tr>
   <td colspan="2">

   <table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
   <td></td>
 </tr>
 <tr>
   <td> 
<table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
   <td colspan="4" align="center" valign="bottom" bgcolor="#094D7E"> </td>
 </tr>
 <tr>
   <td height="10" colspan="4" align="center" valign="bottom" bgcolor="#FFFFFF"> <!-- TemplateBeginEditable name="conteudo" -->
     conteudo<!-- TemplateEndEditable -->
     <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
       <tr bgcolor="#094D7E">
         <td width="20%">

 

 

Seguem abaixo os prints:

 

Firefox:

http://www.logobyfogo.com/firefox.jpg

 

Internet Explorer:

http://www.logobyfogo.com/internet_explorer.jpg

Compartilhar este post


Link para o post
Compartilhar em outros sites

Posta todo o código HTML e CSS do site ;)

Se não postar o código, não vai dar pra saber o que tá acontecendo. Pode ser tanto no CSS como no HTML.

 

Substitui

<td height="10" colspan="4" align="center" valign="bottom" bgcolor="#FFFFFF">

por

<td height="10" colspan="4" align="center" valign="bottom">

(Só tirei o fundo branco pra saber se é problema de espaço e não borda)

 

Recomendo que reestruture o layout. Tabelas são apenas para dados tabulares.

Dá uma pesquisada sobre tableless e se der, recomece a diagramação do layout.

 

:seta: http://tableless.com.br/o-que-etableless/

Compartilhar este post


Link para o post
Compartilhar em outros sites

Segue código completo:

 

<?php include("login.php"); 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/casaeoferta.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>CASAeOFERTA . Seu Portal de Imóveis e Contrução Civil</title>

<script>
function abrir(pagina,largura,altura) {

//pega a resolução do visitante
w = screen.width;
h = screen.height;

//divide a resolução por 2, obtendo o centro do monitor
meio_w = w/2;
meio_h = h/2;

//diminui o valor da metade da resolução pelo tamanho da janela, fazendo com q ela fique centralizada
altura2 = altura/2;
largura2 = largura/2;
meio1 = meio_h-altura2;
meio2 = meio_w-largura2;

//abre a nova janela, já com a sua devida posição
window.open(pagina,'','height=' + altura + ', width=' + largura + ', top='+meio1+', left='+meio2+'');
}
</script>

<!-- Script Inicio -->
<script type="text/javascript">

var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-20021812-1']);
 _gaq.push(['_trackPageview']);

(function() {
 var ga = document.createElement('script'); ga.type = 'text/javascript';
ga.async = true;
   ga.src = ('https:' == document.location.protocol ? 'https://ssl' : ' http://www') + '.google-analytics.com/ga.js';
   var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
 })();

</script>
<!-- Script Final -->

<?php

 $v = $_SERVER["SCRIPT_NAME"];
    $vb = explode("/",$v);
    $tam = count($vb);
    $tam = $tam-1;

  if($vb[$tam] == "index.php"){

 ?>
           <!-- CSS -->
           <link rel="stylesheet" href="<?php echo $host2;?>/destaque.css" type="text/css" />

           <!-- jQuery -->

          	<script type="text/javascript" src="<?php echo $host2;?>/js/jquery-1.4.2.min.js"></script>
           <script type="text/javascript" src="<?php echo $host2;?>/js/jquery.cycle.all.min.js"></script>

<? }  else { ?>
           <link rel="stylesheet" href="<?php echo $host2;?>/css/lightbox.css" type="text/css" media="screen" />
           <link rel="stylesheet" href="<?php echo $host2;?>/css/galeria.css" type="text/css" media="screen" />
           <!-- incluindo os arquivos da biblioteca LightBox-->
           <script type="text/javascript" src="<?php echo $host2;?>/js/prototype.js"></script>
           <script type="text/javascript" src="<?php echo $host2;?>/js/scriptaculous.js?load=effects,builder"></script>
           <script type="text/javascript" src="<?php echo $host2;?>/js/lightbox.js"></script>
           <script type="text/javascript">
               $(function() {
                  $('a[@rel*=lightbox]').lightBox();
               });
               </script>
           <script src="<?php echo $host2;?>/Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
           <?php
                $v = $_SERVER["SCRIPT_NAME"];
                $vb = explode("/",$v);
                $tam = count($vb);
                $tam = $tam-1;

                if($vb[$tam] != "imprensa.php"){

           ?>
           <script type="text/javascript" src="<?php echo $host2;?>/js/jquery.min.js"></script>
<?php } ?>
<script type="text/javascript">

$(document).ready(function() {	

$('a[name=modal]').click(function(e) {
	e.preventDefault();

	var id = $(this).attr('href');

	var maskHeight = $(document).height();
	var maskWidth = $(window).width();

	$('#mask').css({'width':maskWidth,'height':maskHeight});

	$('#mask').fadeIn(1000);	
	$('#mask').fadeTo("slow",0.8);	

	//Get the window height and width
	var winH = $(window).height();
	var winW = $(window).width();

	$(id).css('top',  winH/2-$(id).height()/2);
	$(id).css('left', winW/2-$(id).width()/2);

	$(id).fadeIn(2000); 

});

$('.window .close').click(function (e) {
	e.preventDefault();

	$('#mask').hide();
	$('.window').hide();
});		

$('#mask').click(function () {
	$(this).hide();
	$('.window').hide();
});			

});


</script>

<?php } ?>
<link href="<?php echo $host2;?>/estilos.css" rel="stylesheet" type="text/css" />
<!-- InstanceBeginEditable name="doctitle" -->
<!-- InstanceEndEditable -->
<link href="<?php echo $host2;?>/css/estilo.css" rel="stylesheet" type="text/css" />
<!--<link href="<?php echo $host2;?>/css/bannerHome.css" rel="stylesheet" type="text/css" />-->
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="background:url(<?php echo $host2;?>/images/fundo_degrade.jpg); background-repeat:repeat-x; background-attachment:fixed;">
<!--inicio topo--> 
<table width="903" border="0" align="center" cellpadding="0" cellspacing="no" bordercolor="#999999" bgcolor="#FFFFFF">
 <tr>
   <th colspan="2" bgcolor="#383B64" scope="col"><table width="903" align="center" cellpadding="0" cellspacing="0" bgcolor="#383B64">
       <tr>
         <th width="299" rowspan="3" valign="top" bgcolor="#383B64" scope="col"><img src="<?php echo $host2;?>/top1.jpg" width="299" height="150" border="0" usemap="#Map2" /></th>
         <th width="276" valign="top" bgcolor="#383B64" scope="col"><div align="left"><img src="http://www.casaeoferta.com.br/newsletter/redes_top.jpg" width="274" height="55" border="0" usemap="#Map2Map" />
             <map name="Map2Map" id="Map2Map">
               <area shape="rect" coords="112,6,143,38" href="http://www.facebook.com/profile.php?id=100001401053262&ref=search" target="_blank" alt="Facebook" />
               <area shape="rect" coords="76,8,103,36" href="http://www.youtube.com/user/CASAeOFERTA" target="_blank" alt="You Tube" />
               <area shape="rect" coords="37,6,66,37" href="http://twitter.com/CasaeOferta" target="_blank" alt="Twitter" />
               <area shape="rect" coords="1,6,29,36" href="http://www.orkut.com.br/Main#Profile?rl=pv&uid=4508085633589609255" target="_blank" alt="Orkut" />
             </map>
           </div></th>
         <th width="352" valign="top" bgcolor="#383B64" scope="col"><iframe width="337" height="55" frameborder="0" scrolling="No" marginheight="0" marginwidth="0" src="http://www.casaeoferta.com.br/newsletter/index.html"></iframe></th>
       </tr>
       <tr>
         <th colspan="2" valign="top" bgcolor="#383B64" scope="col"><img src="http://www.casaeoferta.com.br/newsletter/botoes_top.jpg" width="611" height="35" border="0" usemap="#Map3" /></th>
       </tr>
       <tr>
         <th height="75" colspan="2" bgcolor="#383B64"col"> <form method="post" action="<?php echo $host2; ?>/pages.php" name="formlogin">
             <label for="cod_estados"></label>
             <label for="codigo"></label>
             <span class="carregando"></span> 
             <script src="http://www.google.com/jsapi"></script> 
             <script type="text/javascript">
	  </script> 
             <script type="text/javascript">google.load('jquery', '1.3');
	</script> 
             <script type="text/javascript">
	$(function(){
		$('#cod_estados').change(function(){
			if( $(this).val() ) {
				$('#codigo').hide();
				$('.carregando').show();
				$.getJSON('combo.topo.cidade.ajax.php?acao=1&search=',{cod_estados: $(this).val(), ajax: 'true'}, function(j){
					var options = '<option value=""></option>';
					for (var i = 0; i < j.length; i++) {
						options += '<option value="' + j[i].codigo + '">' + j[i].cidade + '</option>';
					}
					$('#codigo').html(options).show();
					$('.carregando').hide();
				});
			} else {
				$('#codigo').html('<option value="">Escolha um estado</option>');
			}
		});
	});
	</script>
             <label></label>
             <table width="100%" align="center" bgcolor="#383B64">
               <tr>
                 <td width="16%"><div align="left">
                     <input name="procura" type="text" id="procura" value="Buscar" onfocus="this.value = '';"  style="width:130px;"/>
                   </div></td>
                 <td width="10%"><div align="left">
                     <select id="segmento" name="segmento" size="1"  style="width:130px;">
                       <!--<option selected="selected">Guia de Serviços</option> -->
                       <option value="produtos">Produtos</option>
                       <option value="imoveis">Imóveis</option>
                     </select>
                   </div></td>
                 <td width="48%" rowspan="2"><div align="left">
                     <input name="button" type="submit" class="botao" id="button" value="Pesquisar"   style="width:80px;"/>
                   </div></td>
                 <td width="26%" colspan="6" rowspan="2" bgcolor="#383B64"><div align="right"><img src="<?php echo $host2;?>/top3.jpg" alt="" width="208" height="43" border="0" usemap="#MapMap" /></div></td>
               </tr>
               <tr>
                 <td><div align="left">
                     <select name="cod_estados" id="cod_estados"  style="width:135px;">
                       <option value="">UF</option>
                       <?php
     $sql = "SELECT cod_estados, sigla FROM estados ORDER BY sigla";
     $res = mysql_query( $sql );
     while ( $row = mysql_fetch_assoc( $res ) ) {
        echo '<option value="'.$row['cod_estados'].'">'.$row['sigla'].'</option>';
     }
  ?>
                     </select>
                   </div></td>
                 <td><div align="left">
                     <select name="cidadegeral" id="codigo"  style="width:130px;">
                       <option value="">Todas as Cidades</option>
                     </select>
                   </div></td>
               </tr>
             </table>
           </form>
         </th>
       </tr>
     </table>

     <!--fim topo--> </th>
 </tr>
 <tr>
   <td colspan="2" valign="top" bgcolor="#094D7E"><table width="100%" border="0" cellpadding="3" cellspacing="0" bordercolor="#094D7E" bgcolor="#094D7E">
       <tr>
         <td width="24%" bgcolor="#094D7E"><center>
             <?php include ('rotinaBannerHome.php'); 
         // EXIBIR BANNER 1
         if (file_exists($localBanner1)) {
               echo "<a href='$linkBanner1' target='_blank' rel='lightbox[roadtrip]'>";
               echo "<img src='$host2/$localBanner1' border='0' width=200 height=85 /></a>";
            }else{
               echo "<img src='$host2/images/casaeoferta.jpg' width=200 height=85 />";
            }	
         ?>
           </center></td>
         <td width="56%" rowspan="3" valign="middle" nowrap="nowrap" bgcolor="#094D7E"><center>
             <?php include ('rotinaBannerHome.php'); 
         // EXIBIR BANNER 3
         if (file_exists($localBanner3)) {
            echo "<a href='$linkBanner3' target='_blank' rel='lightbox[roadtrip]'>";
            echo "<img src='$host2/$localBanner3' border='0'  width=480 height=180 /></a>";
         }else{
            echo "<img src='$host2/images/casaeoferta.jpg' border='0'  width=480 height=180 />";
         }	
         ?>
           </center></td>
         <td width="24%" rowspan="2" valign="middle" bgcolor="#094D7E"><center>
             <?php include ('rotinaBannerHome.php'); 
         // EXIBIR BANNER 4
         if (file_exists($localBanner4)) {
            echo "<a href='$linkBanner4' target='_blank' rel='lightbox[roadtrip]'>";
            echo "<img src='$host2/$localBanner4' border='0' width=200 height=85 /></a>";
         }else{
            echo "<img src='$host2/images/casaeoferta.jpg' border='0' width=200 height=85 />";
         }	
         ?>
           </center></td>
       </tr>
       <tr>
         <td rowspan="2" valign="middle" bgcolor="#094D7E"><center>
             <?php include ('rotinaBannerHome.php'); 
         // EXIBIR BANNER 2
         if (file_exists($localBanner2)) {
            echo "<a href='$linkBanner2' target='_blank' rel='lightbox[roadtrip]'>";
            echo "<img src='$host2/$localBanner2' border='0' width=200 height=85 /></a>";
         }else{
            echo "<img src='$host2/images/casaeoferta.jpg' border='0' width=200 height=85 />";
         }	
         ?>
           </center></td>
       </tr>
       <tr>
         <td width="24%" valign="middle" bgcolor="#094D7E"><center>
             <?php include ('rotinaBannerHome.php'); 
         // EXIBIR BANNER 5
         if (file_exists($localBanner5)) {
            echo "<a href='$linkBanner5' target='_blank' rel='lightbox[roadtrip]'>";
            echo "<img src='$host2/$localBanner5' border='0' width=200 height=85 /></a>";
         }else{
            echo "<img src='$host2/images/casaeoferta.jpg' border='0' width=200 height=85 />";
         }	
         ?>
           </center></td>
       </tr>
     </table>
     <table width="100%" border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td bgcolor="#094D7E"><center>
             <!-- InstanceBeginEditable name="combohome" --><!-- InstanceEndEditable -->
           </center></td>
       </tr>
     </table></td>
 </tr>
 <tr>
   <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
       <tr>
         <td></td>
       </tr>
       <tr>
         <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
             <tr>
               <td colspan="4" align="center" valign="bottom" bgcolor="#336699"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                   <tr bgcolor="#094D7E">
                     <td width="20%"><center>
                         <?php include ('rotinaBannerHome.php'); 
       // EXIBIR BANNER 6
         if (file_exists($localBanner6)) {
          echo "<a href='$linkBanner6' target='_blank' rel='lightbox[roadtrip]'>";
          echo "<img src='$host2/$localBanner6' border='0' width=170 height=60 /></a>";
       }else{
          echo "<img src='$host2/images/casaeoferta.jpg' border='0' width=170 height=60 />";
       }	
       ?>
                       </center></td>
                     <td width="20%"><center>
                         <?php include ('rotinaBannerHome.php'); 
       // EXIBIR BANNER 7
         if (file_exists($localBanner7)) {
          echo "<a href='$linkBanner7' target='_blank' rel='lightbox[roadtrip]'>";
          echo "<img src='$host2/$localBanner7' border='0' width=170 height=60 /></a>";
       }else{
          echo "<img src='$host2/images/casaeoferta.jpg' border='0' width=170 height=60 />";
       }	
       ?>
                       </center></td>
                     <td width="20%"><center>
                         <?php include ('rotinaBannerHome.php'); 
       // EXIBIR BANNER 8
         if (file_exists($localBanner8)) {
          echo "<a href='$linkBanner8' target='_blank' rel='lightbox[roadtrip]'>";
          echo "<img src='$host2/$localBanner8' border='0' width=170 height=60 /></a>";
       }else{
          echo "<img src='$host2/images/casaeoferta.jpg' border='0' width=170 height=60 />";
       }	
       ?>
                       </center></td>
                     <td width="20%"><center>
                         <?php include ('rotinaBannerHome.php'); 
       // EXIBIR BANNER 9
         if (file_exists($localBanner9)) {
          echo "<a href='$linkBanner9' target='_blank' rel='lightbox[roadtrip]'>";
          echo "<img src='$host2/$localBanner9' border='0' width=170 height=60 /></a>";
       }else{
          echo "<img src='$host2/images/casaeoferta.jpg' border='0' width=170 height=60 />";
       }	
       ?>
                       </center></td>
                     <td width="20%"><center>
                         <?php include ('rotinaBannerHome.php'); 
       // EXIBIR BANNER 10
         if (file_exists($localBanner10)) {
          echo "<a href='$linkBanner10' target='_blank' rel='lightbox[roadtrip]'>";
          echo "<img src='$host2/$localBanner10' border='0' width=170 height=60 /></a>";
       }else{
          echo "<img src='$host2/images/casaeoferta.jpg' border='0' width=170 height=60 />";
       }	
       ?>
                       </center></td>
                   </tr>
                 </table></td>
             </tr>
             <tr>
               <td height="10" colspan="4" align="center" valign="bottom" bgcolor="#FFFFFF"><!-- InstanceBeginEditable name="conteudo" -->
                 <p class="style7">  <br />
                   <br />
                 </p>
                 <? $txt = "select * from imprensa order by id DESC";
      $sqlI = mysql_query($txt);


   ?>
                 <div id="galeria">
                   <ul>
                     <table width="100%" border="0" cellspacing="3" cellpadding="3">
                       <?  
           $linha =0;
           while($imprensa = mysql_fetch_object($sqlI)) { 
            if ($linha == 0) {
               echo "<TR>";

            }

           ?>

                         <td><? $d = explode("-",$imprensa->data); echo $d[2]."/".$d[1]."/".$d[0]; echo "<BR />"; echo $imprensa->titulo; ?>
                           <BR />
                           <BR />
                           <a href="imprensa/<? echo $imprensa->imagem; ?>" rel="lightbox[roadtrip]" title="<? echo $d[2]."/".$d[1]."/".$d[0]; echo " - "; echo $imprensa->titulo; ?>"> <img src="imprensa/<? echo $imprensa->imagem; ?>" height="150"/></a></td>
                         <? 
             $linha++;
             if ($linha == 3) {
                echo "</tr>";
                $linha = 0;
             }

             } ?>
                       <tr>
                         <td> </td>
                         <td> </td>
                         <td> </td>
                         <td> </td>
                       </tr>
                     </table>
                   </ul>
                 </div>
                 <p class="style7"> <br />
                   <br />
                 </p>
                 <!-- InstanceEndEditable --></td>
             </tr>
             <tr>
               <td colspan="4" align="center" valign="bottom" bgcolor="#336699"><img src="<?php echo $host2;?>/images/topo_ultimos.png" width="259" height="27" /></td>
             </tr>
             <tr>
               <td align="center" valign="top"><img border="0" src="<?php echo $host2;?>/images/topo_imoveis.jpg"  /></td>
               <td align="center" valign="top"><img border="0" src="<?php echo $host2;?>/images/topo_prod.jpg"  /></td>
               <td align="center" valign="top"><img border="0" src="<?php echo $host2;?>/images/topo_cr.jpg"  /></td>
               <td align="center"  valign="top"><img border="0" src="<?php echo $host2;?>/images/topo_imb.jpg"  /></td>
             </tr>
             <tr>
               <td width="25%" align="center" valign="top"><?  

			   $sql_txt="select l.id idi, l.foto1 foto1, l.obs obs, vvenda, vlocacao, idacao, idtipo, l.bairro bairro, l.cidade cidade from imoveis l, anuncios a, imobiliarias ii 
			   where 
			   liberacao='on' and ii.cnpj = l.cliente and ii.status = 'on' 
			   and l.id=idimovel 
			   ";


			   $sql_txt=$sql_txt." order by l.id DESC LIMIT 5";	

			//echo "SQL: ".$sql_txt;
               //echo mysql_error();
			$sql=mysql_query($sql_txt,$db);
		  if (!$sql) {echo "Houve um erro de MySQL 2"; echo mysql_error();}
			else if (mysql_num_rows($sql) > 0) { 
                $i=0;
               while (@$x=mysql_fetch_object($sql)){
			        $idz[$i]=$x->idi;
					$foto[$i]= $x->foto1;
					$endereco[$i]= $x->endereco;
					$nro[$i]=$x->nro;
                       $obs[$i]=$x->obs;
					//
					$txt="select cidade from cidades where codigo=$x->cidade";
					//echo $txt;
					$sqla=mysql_query($txt,$db);
					@$yy=mysql_fetch_object($sqla);
					$cidadea[$i]= $yy->cidade;

					//
					$txt="select bairro from bairros where codigo=$x->bairro";
					//echo $txt;
					$sqla=mysql_query($txt,$db);
					@$yy=mysql_fetch_object($sqla);
					//
					$bairroa[$i]= $yy->bairro;
					//
					$txt="select tipo from tipos where codigo=$x->idtipo";
					//echo $txt;
					$sqla=mysql_query($txt,$db);
					@$yy=mysql_fetch_object($sqla);

					//
					$tipoa[$i]= $yy->tipo;

                       $idacao[$i] = $x->idacao;
                       $vvenda[$i] = $x->vvenda;
                       $vlocacao[$i] = $x->vlocacao;

					$i++;

			   }

	        //echo $i; ?>
                 <table border="0" width="98%" cellpadding="4" cellspacing="3" align="center" >
                   <? $j=0; $linha=0;	
	  while ($j < $i) {		   
		 if ($linha==0) {
		    echo "<TR>";
		 }  

		if ($linha==1) {
		    echo "</TR>";
			$linha=0;
		 }
		 ?>

                     <td align="center" valign="top"><table width="195" height="75" border="0" cellspacing="3" cellpadding="3" style="background-color:#DEDEDD;">
                         <tr>
                         	<?php
                           	$desc = substr($obs[$j],0,50);
                           	$novaUrlGerar42 = geraUrl("{$tipoa[$j]}-{$cidadea[$j]}-{$bairroa[$j]}-{$desc}");
							$novaUrl42 = "{$host2}/{$dir1}/{$novaUrlGerar42}_{$idz[$j]}.html";
                           ?>
                          <!--<td width="15%"><a href="<?php echo $host2;?>/verimoveis.php?id=<? echo $idz[$j]; ?>" class=\"a2\"><img src="<?php echo $host2;?>/imoveis/<? echo $foto[$j] ?>" width="75" height="50" border="0" /></a></td>-->
                          <td width="15%"><a href="<?php echo $novaUrl42; ?>" class=\"a2\"><img src="<?php echo $host2;?>/imoveis/<? echo $foto[$j] ?>" width="75" height="50" border="0" /></a></td>
                           <td align="left" valign="top"><b><font style="font-size:10px; font-family:Tahoma, Geneva, sans-serif;"><a href="<?php echo $novaUrl42; ?>" class=\"a2\"><? echo $tipoa[$j]; echo " em ".$cidadea[$j]; ?></a></font></b><br />
                             <div style="font-size:8px"><font style="color:#900; font-size:10px;">
                               <?  if ($idacao[$j] == 1) { echo "Alugar"; } else if ($idacao[$j] == 2) { echo "Vender"; } else { echo "Temporada"; }  ?>
                               </font></div>
                             <? if ($idacao[$j] == 2) { ?>
                             <div style="color:#900; font-family:Tahoma, Geneva, sans-serif; font-size:9px;">
                             R$ <? echo number_format($vvenda[$j],2,",","."); ?><br />
                             <? } else { ?>
                             <div style="color:#900; font-family:Tahoma, Geneva, sans-serif; font-size:9px;">R$ <? echo number_format($vlocacao[$j],2,",","."); ?><br />
                               <? } ?>
                             </div>
                             <div style="color:#000; font-family:Tahoma, Geneva, sans-serif; font-size:18px;"></div></td>
                         </tr>
                       </table>
                       <b>
                       <?
		 //



		 echo "</b></a></td>";	   

	    $linha++;
		$j++;
    }  

  ?>
                 </table>
                 <?   } ?></td>
               <td width="27%" align="center" valign="top"><?  

			   $sql_txt="select p.foto1 foto1, p.nome nome, p.preco preco, p.id id, p.idemp idemp from produtos p, empresas e where cnpj = idemp and e.status='on' order by id DESC LIMIT 5
			   ";




			//echo "SQL: ".$sql_txt;
			$sql=mysql_query($sql_txt,$db);
               echo mysql_error();
		  if (!$sql) {echo "Houve um erro de MySQL 3";}
			else if (mysql_num_rows($sql) > 0) { 
                $i=0;
               while ($x=mysql_fetch_object($sql)){
			        $idz[$i]=$x->id;
					$foto[$i]= $x->foto1;
                       $produto[$i]= $x->nome;

					//
					$txt="select c.cidade cidade from cidades c, empresas p where c.codigo=p.cidade and p.cnpj='$x->idemp'";
					//echo $txt;
					$sqla=mysql_query($txt,$db);
					$yy=mysql_fetch_object($sqla);
					$cidadea[$i]= $yy->cidade;




					//
					//$tipoa[$i]= $yy->tipo;


                       $vvenda[$i] = $x->preco;


					$i++;

			   }

	        //echo $i; ?>
                 <table border="0" width="98%" cellpadding="4" cellspacing="3" align="center" >
                   <? $j=0; $linha=0;	
	  while ($j < $i) {		   
		 if ($linha==0) {
		    echo "<TR>";
		 }  

		if ($linha==1) {
		    echo "</TR>";
			$linha=0;
		 }
		 ?>

                     <td align="center"><table width="195" height="75" border="0" cellspacing="3" cellpadding="3" style="background-color:#DEDEDD;">
                         <tr>
                         	<?php
                           	$novaUrlGerarProduto = trim(geraUrl("{$produto[$j]}"));
							$novaUrlGerar = "{$host2}/{$dir2}/{$novaUrlGerarProduto}_{$idz[$j]}.html";
                           ?>
                           <!--<td width="15%"><a href="<?php echo $host2;?>/verprodutos.php?id=<? echo $idz[$j]; ?>" class=\"a2\"><img src="<?php echo $host2;?>/imoveis/<? echo $foto[$j] ?>" width="75" height="50" border="0" /></a></td>-->
                           <td width="15%"><a href="<?php echo $novaUrlGerar ?>" class=\"a2\"><img src="<?php echo $host2;?>/imoveis/<? echo $foto[$j] ?>" width="75" height="50" border="0" /></a></td>
                           <td align="left" valign="top"><b><font style="font-size:10px; font-family:Tahoma, Geneva, sans-serif;"><a href="<?php echo $novaUrlGerar ?>" class=\"a2\"><? echo substr($produto[$j],0,20);  ?></a><BR />
                             <? echo $cidadea[$j]; ?></font></b><br />
                             <div style="font-size:8px"></div>
                             <BR />
                             <div style="color:#900; font-family:Tahoma, Geneva, sans-serif; font-size:9px;">
                               <? if ($vvenda[$j] != "0.00") { ?>
                               R$ <? echo number_format($vvenda[$j],2,",","."); ?>
                               <? } else { ?>
                               Confira
                               <? } ?>
                             </div></td>
                         </tr>
                       </table>
                       <b>
                       <?
		 //



		 echo "</b></a></td>";	   

	    $linha++;
		$j++;
    }  

  ?>
                 </table>
                 <?   } ?></td>
               <td width="25%" align="center" valign="top"><?  

			   $sql_txt="select * from empresas where status='on'";


			   $sql_txt=$sql_txt." order by id DESC LIMIT 5";	

			//echo "SQL: ".$sql_txt;
			$sql=mysql_query($sql_txt,$db);
		  if (!$sql) {echo "Houve um erro de MySQL 2";}
			else if (mysql_num_rows($sql) > 0) { 
                $i=0;
               while ($x=mysql_fetch_object($sql)){
                       $idEmpresa[$i] = $x->id;
			        $idz[$i]=$x->cnpj;
                       if($x->logotipo != "") {
					$foto[$i]= $x->logotipo;
                       } else {
                         $foto[$i] = "foto_universal.jpg";
                       }
					$endereco[$i]= $x->endereco;
					$nro[$i]=$x->nro;

                       $nomea[$i]=$x->imobiliaria;

                       $uf[$i] = $x->uf;
					//
					$txt="select cidade from cidades where codigo=$x->cidade";
					//echo $txt;
					$sqla=mysql_query($txt,$db);
					$yy=mysql_fetch_object($sqla);
					$cidadea[$i]= $yy->cidade;

					//

					//
					$bairroa[$i]= $x->bairro;
					//


					//

                       $tel[$i] = $x->telefone;



					$i++;

			   }

	        //echo $i; ?>
                 <table border="0" width="98%" cellpadding="4" cellspacing="3" align="center" >
                   <? $j=0; $linha=0;	
	  while ($j < $i) {		   
		 if ($linha==0) {
		    echo "<TR>";
		 }  

		if ($linha==1) {
		    echo "</TR>";
			$linha=0;
		 }
		 ?>

                     <td align=center><table width="195" height="75" border="0" cellspacing="3" cellpadding="3" style="background-color:#DEDEDD;">
                         <tr>
                         	<?php
                           	$novaUrlGerarEmpresa = trim(geraUrl("{$nomea[$j]}"));
							$novaUrlGerar = "{$host2}/{$dir3}/{$novaUrlGerarEmpresa}_{$idEmpresa[$j]}.html";
                           ?>
                           <!--<td width="15%"><a href="<?php echo $host2;?>/perfilemp.php?id=<? echo $idz[$j]; ?>" class=\"a2\"><img src="<?php echo $host2;?>/imoveis/<? echo $foto[$j] ?>" width="75" height="50" border="0" /></a></td>-->
                           <td width="15%"><a href="<?php echo $novaUrlGerar ?>" class=\"a2\"><img src="<?php echo $host2;?>/imoveis/<? echo $foto[$j] ?>" width="75" height="50" border="0" /></a></td>
                           <td align="left" valign="top"><b><font style="font-size:10px; font-family:Tahoma, Geneva, sans-serif;"><a href="<?php echo $novaUrlGerar ?>" class=\"a2\"><? echo $nomea[$j]; ?></a></font></b><br />
                             <div style="font-size:8px"><font style="color:#900; font-size:8px;">
                               <?  echo $cidadea[$j]."/".$uf[$j];   ?>
                               </font></div>
                             <div style="color:#900; font-family:Tahoma, Geneva, sans-serif; font-size:9px;"></td>
                         </tr>
                       </table>
                       <b>
                       <?
		 //



		 echo "</b></a></td>";	   

	    $linha++;
		$j++;
    }  

  ?>
                 </table>
                 <?   } ?></td>
               <td align="center"  valign="top"><?  

			   $sql_txt="select * from imobiliarias where status='on'";


			   $sql_txt=$sql_txt." order by id DESC LIMIT 5";	

			//echo "SQL: ".$sql_txt;
			$sql=mysql_query($sql_txt,$db);
		  if (!$sql) {echo "Houve um erro de MySQL 2";}
			else if (mysql_num_rows($sql) > 0) { 
                $i=0;
               while ($x=mysql_fetch_object($sql)){
			        $idz[$i]=$x->cnpj;
                       $idEmpresa[$i] = $x->id;
                       if($x->logotipo != "") {
					$foto[$i]= $x->logotipo;
                       } else {
                         $foto[$i] = "foto_universal.jpg";
                       }
					//$foto[$i]= $x->logotipo;
					$endereco[$i]= $x->endereco;
					$nro[$i]=$x->nro;
                       $nomeb[$i]=$x->imobiliaria;

                       $uf[$i] = $x->uf;
					//
					$txt="select cidade from cidades where codigo=$x->cidade";
					//echo $txt;
					$sqla=mysql_query($txt,$db);
					@$yy=mysql_fetch_object($sqla);
					$cidadea[$i]= $yy->cidade;

					//

					//
					$bairroa[$i]= $x->bairro;
					//


					//

                       $tel[$i] = $x->creci;

					$i++;

			   }

	        //echo $i; ?>
                 <table border="0" width="98%" cellpadding="4" cellspacing="3" align="center" >
                   <? $j=0; $linha=0;	
	  while ($j < $i) {		   
		 if ($linha==0) {
		    echo "<TR>";
		 }  

		if ($linha==1) {
		    echo "</TR>";
			$linha=0;
		 }
		 ?>

                     <td align=center><table width="195" height="75" border="0" cellspacing="3" cellpadding="3" style="background-color:#DEDEDD;">
                         <tr>
                         	<?php
                           	$novaUrlGerarImob = trim(geraUrl("{$nomeb[$j]}"));
							$novaUrlGerar = "{$host2}/{$dir4}/{$novaUrlGerarImob}_{$idEmpresa[$j]}.html";
                           ?>
                           <!--<td width="15%"><a href="<?php echo $host2;?>/perfilimob.php?id=<? echo $idz[$j]; ?>" class=\"a2\"><img src="<?php echo $host2;?>/imoveis/<? echo $foto[$j] ?>" width="75" height="50" border="0" /></a></td>-->
                           <td width="15%"><a href="<?php echo $novaUrlGerar ?>" class=\"a2\"><img src="<?php echo $host2;?>/imoveis/<? echo $foto[$j] ?>" width="75" height="50" border="0" /></a></td>
                           <td align="left" valign="top"><b><font style="font-size:10px; font-family:Tahoma, Geneva, sans-serif;"><a href="<?php echo $novaUrlGerar ?>" class=\"a2\"><? echo $nomeb[$j]; ?></a></font></b><br />
                             <div style="font-size:8px"><font style="color:#900; font-size:9px;">
                               <?  echo $cidadea[$j]."/".$uf[$j];   ?>
                               </font></div>
                             <div style="color:#900; font-family:Tahoma, Geneva, sans-serif; font-size:9px;">CRECI: <? echo $tel[$j]; ?></div></td>
                         </tr>
                       </table>
                       <b>
                       <?
		 //



		 echo "</b></a></td>";	   

	    $linha++;
		$j++;
    }  

  ?>
                 </table>
                 <?   } ?></td>
             </tr>
           </table></td>
       </tr>
     </table></td>
 </tr>
 <tr>
   <td></td>
   <td width="894"></td>
 </tr>
 <tr>
   <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
       <tr>
         <td><table width="661" border="0" cellspacing="0" cellpadding="0">
             <tr>
               <td><img src="<?php echo $host2;?>/images/tit_apoio.png" width="671" height="27" /></td>
             </tr>
             <tr>
               <td height="226" bgcolor="#FFFCC8"><table width="661" border="0" cellspacing="6" cellpadding="6">
                   <tr>
                     <td><?
$sql_txt="select * from banners where id=1";
$sql=mysql_query($sql_txt,$db);
$verifica=mysql_fetch_object($sql);
 if ($verifica->banner == "") {
?>
                       <img src="<?php echo $host2;?>/images/semapoio.png" width="195" height="96" alt="">
                       <? } else { ?>
                       <a href="<? if ($verifica->link <> "") { echo  "http://".$verifica->link; } else { echo "#"; } ?>" target="_blank"><img src="<?php echo $host2;?>/banners/<? echo $verifica->banner; ?>" width="195" height="96" alt="<? echo $verifica->nome; ?>" border="0"></a>
                       <? } ?></td>
                     <td><?
$sql_txt="select * from banners where id=2";
$sql=mysql_query($sql_txt,$db);
$verifica=mysql_fetch_object($sql);
 if ($verifica->banner == "") {
?>
                       <img src="<?php echo $host2;?>/images/semapoio.png" width="195" height="96" alt="">
                       <? } else { ?>
                       <a href="<? if ($verifica->link <> "") { echo  "http://".$verifica->link; } else { echo "#"; } ?>" target="_blank" title="<? echo $verifica->nome; ?>"><img src="<?php echo $host2;?>/banners/<? echo $verifica->banner; ?>" width="195" height="96" alt="<? echo $verifica->nome; ?>" border="0"></a>
                       <? } ?></td>
                     <td><?
$sql_txt="select * from banners where id=3";
$sql=mysql_query($sql_txt,$db);
$verifica=mysql_fetch_object($sql);
 if ($verifica->banner == "") {
?>
                       <img src="<?php echo $host2;?>/images/semapoio.png" width="195" height="96" alt="">
                       <? } else { ?>
                       <a href="<? if ($verifica->link <> "") { echo  "http://".$verifica->link; } else { echo "#"; } ?>" target="_blank" title="<? echo $verifica->nome; ?>"><img src="<?php echo $host2;?>/banners/<? echo $verifica->banner; ?>" width="195" height="96" alt="<? echo $verifica->nome; ?>" border="0"></a>
                       <? } ?></td>
                   </tr>
                   <tr>
                     <td><?
$sql_txt="select * from banners where id=4";
$sql=mysql_query($sql_txt,$db);
$verifica=mysql_fetch_object($sql);
 if ($verifica->banner == "") {
?>
                       <img src="<?php echo $host2;?>/images/semapoio.png" width="195" height="96" alt="">
                       <? } else { ?>
                       <a href="<? if ($verifica->link <> "") { echo  "http://".$verifica->link; } else { echo "#"; } ?>" target="_blank" title="<? echo $verifica->nome; ?>"><img src="<?php echo $host2;?>/banners/<? echo $verifica->banner; ?>" width="195" height="96" alt="<? echo $verifica->nome; ?>" border="0"></a>
                       <? } ?></td>
                     <td><?
$sql_txt="select * from banners where id=5";
$sql=mysql_query($sql_txt,$db);
$verifica=mysql_fetch_object($sql);
 if ($verifica->banner == "") {
?>
                       <img src="<?php echo $host2;?>/images/semapoio.png" width="195" height="96" alt="">
                       <? } else { ?>
                       <a href="<? if ($verifica->link <> "") { echo  "http://".$verifica->link; } else { echo "#"; } ?>" target="_blank" title="<? echo $verifica->nome; ?>"><img src="<?php echo $host2;?>/banners/<? echo $verifica->banner; ?>" width="195" height="96" alt="<? echo $verifica->nome; ?>" border="0"></a>
                       <? } ?></td>
                     <td><?
$sql_txt="select * from banners where id=6";
$sql=mysql_query($sql_txt,$db);
$verifica=mysql_fetch_object($sql);
 if ($verifica->banner == "") {
?>
                       <img src="<?php echo $host2;?>/images/semapoio.png" width="195" height="96" alt="">
                       <? } else { ?>
                       <a href="<? if ($verifica->link <> "") { echo  "http://".$verifica->link; } else { echo "#"; } ?>" target="_blank" title="<? echo $verifica->nome; ?>"><img src="<?php echo $host2;?>/banners/<? echo $verifica->banner; ?>" width="195" height="96" alt="<? echo $verifica->nome; ?>" border="0"></a>
                       <? } ?></td>
                   </tr>
                 </table></td>
             </tr>
           </table></td>
         <td background="<?php echo $host2;?>/destaques.png" width="231" height="243" style="background-repeat:no-repeat"><table width="184" border="0" cellspacing="3" cellpadding="3" align="center">
             <tr>
               <td height="15"> </td>
             </tr>
             <?  $txt = "select * from msgs order by rand() LIMIT 6";
     $sqlN = mysql_query($txt);
     while($n = mysql_fetch_object($sqlN)) {

 ?>
             <tr>
               <td height="25" style="font-size:9px;" align="middle"><a href="<?php echo $host2;?>/noticia.php?id=<? echo $n->id; ?>" style="color:#000"><? echo $n->sub; ?></a></td>
             </tr>
             <? } ?>
             <tr>
               <td align="right"><a href="<?php echo $host2;?>/todas.php"><img src="<?php echo $host2;?>/images/bt_todas.png" width="69" height="14" border="0" /></a></td>
             </tr>
           </table></td>
       </tr>
     </table></td>
 </tr>
 <tr>
   <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
       <tr>
         <td align="right" valign="top"><img src="<?php echo $host2;?>/images/siga.png" width="276" height="73" border="0" usemap="#Map" /></td>
         <td valign="top" background="<?php echo $host2;?>/images/rodape.png" width="627" height="73" style="background-repeat:no-repeat; font-size:9px; margin: 0px; font-family:Tahoma, Geneva, sans-serif; color:#FFF; padding-top:3px; padding-left: 3px; padding-right: 3px; text-align:justify;"><?
       $txt = "select * from regras where codigo=2";
       $tt = mysql_query($txt);
       $texto = mysql_fetch_object($tt);
       echo $texto->texto;
       ?></td>
       </tr>
       <tr>
         <td colspan="2" align="center">Desenvolvimento Web: <a href="http://www.logobyfogo.com.br" target="_blank" style="color:#003">Logobyfogo</a></td>
       </tr>
     </table></td>
 </tr>
</table>
<map name="Map" id="Map">
 <area shape="rect" coords="5,23,51,65" href="http://twitter.com/CasaeOferta" target="_blank" />
 <area shape="rect" coords="83,22,129,67" href=" http://www.orkut.com.br/Main#Profile?rl=pv&uid=4508085633589609255" target="_blank" />
 <area shape="rect" coords="216,23,260,64" href="http://www.facebook.com/profile.php?id=100001401053262&ref=search" target="_blank" />
 <area shape="rect" coords="148,23,194,68" href="http://www.youtube.com/user/CASAeOFERTA" target="_blank" />
</map>
<map name="MapMap" id="MapMap">
 <area shape="rect" coords="15,0,104,21" href="javascript: abrir('<?php echo $host2;?>/login_vai.php','400','200');" alt="Efetuar login no sistema" />
 <area shape="rect" coords="17,26,104,42" href="<?php echo $host2;?>/anuncie.php" target="_blank" alt="Cadastrar anúncio" />
 <area shape="rect" coords="113,3,204,40" href="<?php echo $host2;?>/lista.php?acao=verlista" target="_blank" alt="Minha lista" />
</map>
<map name="MapMap" id="MapMap">
 <area shape="rect" coords="5,23,51,65" href="http://twitter.com/CasaeOferta" target="_blank" />
 <area shape="rect" coords="83,22,129,67" href=" http://www.orkut.com.br/Main#Profile?rl=pv&uid=4508085633589609255" target="_blank" />
 <area shape="rect" coords="216,23,260,64" href="http://www.facebook.com/profile.php?id=100001401053262&ref=search" target="_blank" />
 <area shape="rect" coords="148,23,194,68" href="http://www.youtube.com/user/CASAeOFERTA" target="_blank" />
</map>
<map name="Map2" id="Map2">
 <area shape="rect" coords="20,21,238,135" href="<?php echo $host2;?>/index.php" />
</map>
<map name="Map3" id="Map3">
 <area shape="rect" coords="6,9,61,31" href="<?php echo $host2;?>/index.php" alt="Home" />
 <area shape="rect" coords="68,11,170,33" href="<?php echo $host2;?>/quemsomos.php" alt="Quem Somos" />
 <area shape="rect" coords="182,8,286,32" href="<?php echo $host2;?>/topsemana.php" alt="Top da Semana" />
 <area shape="rect" coords="299,7,369,35" href="<?php echo $host2;?>/imprensa.php" alt="Imprensa" />
 <area shape="rect" coords="383,12,440,36" href="<?php echo $host2;?>/contato.php" alt="Contato" />
 <area shape="rect" coords="453,9,607,33" href="<?php echo $host2;?>/anuncie.php" />
</map>
</body>
<!-- InstanceEnd --></html>

 

Obrigado pelo esforço...

 

Fiz a substituição que me pediu no código e não surtiu efeito.

 

Agradeço se continuar me ajudando com isso.

 

Atenciosamente,

Rodrigo

Compartilhar este post


Link para o post
Compartilhar em outros sites

Rodrigo, tá CRÍTICO esse código. Tags que não foram fechadas, Javascript e CSS atirados no código, código gigante e NADA semântico, entre outros milhões de problemas que poderiam ser resolvido com um pouco de validação, tableless e bom senso.

 

Reseta o CSS das tabelas, adicionando assim no CSS:

table {
   border-collapse: separate;
   border-spacing: 0;
}

 

E depois valida:

:seta: http://validator.w3.org/

 

Nos próximos sites, busca trabalhar sempre com um Reset CSS.

:seta: http://www.pinceladasdaweb.com.br/blog/2008/11/10/10-tecnicas-para-reset-css/

 

E pesquisa lá sobre o que eu te falei :)

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.