Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
meu site da um problema no firefox, no ie funciona normal. olha o codigo do site e o codigo do include que faz dar isso:
>
<!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">](http://www.w3.org/1999/xhtml%22)
<head>
<meta http-equiv="Content-Language" content="pt-br">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Festa do Peão de Campo Limpo - 2009</title>
</head>
<style type="text/css">
<!--
body {
background-image: url('imgs/site/topoi.jpg');
background-repeat: repeat-x;
background-attachment: fixed
}
-->
</style>
<body bgcolor="#E8E8E8">
<div align="center">
<center>
<table width="800" border="0" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" cellspacing="0">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" align="left">
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%">
<div align="left"><img border="0" src="imgs/site/logo.gif"></div></td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%">
<table border="0" cellspacing="1" width="100%" id="AutoNumber2">
<tr>
<td width="24%" valign="top">
<table border="0" cellspacing="0" width="100%" id="AutoNumber3" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0">
<tr>
<td width="100%">
<img border="0" src="imgs/site/menuprincipal.jpg"></td>
</tr>
<tr>
<td width="100%" bgcolor="#CCCCCC" align="left"><b>
<font face="Verdana" style="font-size: 2pt" color="#E8E8E8">
......</font></b></td>
</tr>
<tr>
<td width="100%" bgcolor="#CCCCCC" align="left"><b>
<font face="Verdana" color="#CC0000" style="font-size: 9pt">+
Pagina inicial</font></b></td>
</tr>
<tr>
<td width="100%" bgcolor="#CCCCCC" align="left"><b>
<font face="Verdana" color="#CC0000" style="font-size: 9pt">+ Os
Pioneiros</font></b></td>
</tr>
<tr>
<td width="100%" bgcolor="#CCCCCC" align="left"><b>
<font face="Verdana" color="#CC0000" style="font-size: 9pt">+
Galeria de Fotos</font></b></td>
</tr>
<tr>
<td width="100%" bgcolor="#CCCCCC" align="left"><b>
<font face="Verdana" color="#CC0000" style="font-size: 9pt">+
Rodeio</font></b></td>
</tr>
<tr>
<td width="100%" bgcolor="#CCCCCC" align="left"><b>
<font face="Verdana" color="#CC0000" style="font-size: 9pt">+
Programação</font></b></td>
</tr>
<tr>
<td width="100%" bgcolor="#CCCCCC" align="left"><b>
<font face="Verdana" color="#CC0000" style="font-size: 9pt">+
Parque do Peão</font></b></td>
</tr>
<tr>
<td width="100%" bgcolor="#CCCCCC" align="left"><b>
<font face="Verdana" color="#CC0000" style="font-size: 9pt">+
Como chegar</font></b></td>
</tr>
<tr>
<td width="100%" bgcolor="#CCCCCC" align="left"><b>
<font face="Verdana" color="#CC0000" style="font-size: 9pt">+
Ingresso on-line</font></b></td>
</tr>
<tr>
<td width="100%" bgcolor="#CCCCCC" align="left"><b>
<font face="Verdana" color="#CC0000" style="font-size: 9pt">+
Pontos de venda</font></b></td>
</tr>
<tr>
<td width="100%" bgcolor="#CCCCCC" align="left"><b>
<font face="Verdana" color="#CC0000" style="font-size: 9pt">+
Mural de recados</font></b></td>
</tr>
<tr>
<td width="100%" bgcolor="#CCCCCC" align="left"><b>
<font face="Verdana" color="#CC0000" style="font-size: 9pt">+
Contato</font></b></td>
</tr>
<tr>
<td width="100%" bgcolor="#CCCCCC" align="left">
<font color="#E8E8E8"><span style="font-size: 1pt">.....</span></font></td>
</tr>
<tr>
<td width="100%" bgcolor="#CCCCCC" align="left">
<img border="0" src="imgs/site/servicos.jpg"></td>
</tr>
<tr>
<td width="100%" bgcolor="#CCCCCC" align="left">
<font color="#CCCCCC"><span style="font-size: 2pt">...</span></font></td>
</tr>
<tr>
<td width="100%" bgcolor="#CCCCCC" align="left"><b>
<font face="Verdana" color="#CC0000" style="font-size: 9pt">+
Imprensa</font></b></td>
</tr>
<tr>
<td width="100%" bgcolor="#CCCCCC" align="left"><b>
<font face="Verdana" color="#CC0000" style="font-size: 9pt">+
Notícias</font></b></td>
</tr>
<tr>
<td width="100%" bgcolor="#CCCCCC" align="left"><b>
<font face="Verdana" style="font-size: 2pt" color="#CCCCCC">...</font></b></td>
</tr>
</table> </td>
<td width="1%" valign="top">
</td>
<td width="59%" valign="top">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber4">
<tr>
<td width="100%">
<img border="0" src="imgs/site/destaques.jpg" width="468" height="30"></td>
</tr>
<tr>
<td width="100%">
<img border="0" src="imgs/site/fundimmmm.gif"></td>
</tr>
<tr>
<td width="100%">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber5" bordercolorlight="#CC0000" bordercolordark="#CC0000">
<tr>
<td width="100%">
<table border="0" cellspacing="1" width="100%" id="AutoNumber6">
<tr>
<td width="100%"><?php include"destaquemuda.php"; ?></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" cellspacing="1" width="100%" id="AutoNumber8">
<tr>
<td width="100%">
<img border="0" src="imgs/site/fundimmmm.gif"></td>
</tr>
</table>
<table border="0" cellspacing="1" width="100%" id="AutoNumber7">
<tr>
<td width="50%" valign="top">
<table border="0" cellspacing="0" width="100%" id="AutoNumber9" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0">
<tr>
<td width="100%">
<img border="0" src="imgs/site/programacao.gif"></td>
</tr>
<tr>
<td width="100%">
<img border="0" src="imgs/site/fundimmmm.gif"></td>
</tr>
<tr>
<td width="100%" align="left">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber10" bordercolorlight="#CC0000" bordercolordark="#CC0000">
<tr>
<td width="100%">
<table border="0" cellspacing="1" width="100%" id="AutoNumber11">
<tr>
<td width="100%"><?php include"php/agendainicio.php"; ?></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="50%" valign="top">
</td>
</tr>
</table>
</td>
<td width="40%" valign="top"> </td>
</tr>
</table> </td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</div>
</body>
</html>
codigo que ta fazendo o erro no firefox:
>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="[http://www.w3.org/1999/xhtml"](http://www.w3.org/1999/xhtml) lang="pt-br">
<head>
<title>Galeria atualização</title>
<style type="text/css">
*{
margin:0;
padding:0;
list-style: none;
}
body {
margin: 0px;
}
#noticias {
float: center;
}
#noticias li {
display: none;
height: 0px;
width: 0px;
background-color: #e8e8e8;
border: 0px ridge #e8e8e8;
}
#nav {
border: 0px ridge #e8e8e8;
width: 0px;
float: left;
}
#nav li{
height: 0px;
border: 0px ridge #e8e8e8;
text-align: center;
line-height: 0px;
}
#noticias li.bloco {
display: block;
}
</style>
<script type="text/javascript">
// por William Bruno
// modificado por Aprendiz CSS
// http://forum.imasters.com.br/index.php?showtopic=324735
function muda(){
var el = document.getElementById("noticias").getElementsByTagName("li");
var proximo = 0;
var atual;
for( var i=0; i < el.length; i++ ) {
if( el*.className == "bloco" ) {*
atual = i;
* el**.className = "";*
break;
}
}
proximo = atual + 1;
if(proximo > el.length-1) // condição para retornar à primeira notícia.
proximo = 0;
el[proximo].className = "bloco";
setTimeout("muda()", "4000");
}
window.onload=function(){
setTimeout("muda()", "4000");
* var el = document.getElementById("noticias").getElementsByTagName("li"); *
* var nav = document.getElementById("nav").getElementsByTagName("li");*
* for( var i=0; i < nav.length; i++ ) {*
* nav**.onmouseover = function(){*
this.style.backgroundColor = '#f0f'; // muda o bg ao passar o mouse
for( var i=0; i < el.length; i++ ) { // procura a notícia atual que está ativa
* if( el**.className == 'bloco' )*
* el**.className = ''; // esconde ela para mostrar a que o mouse estiver por cima*
}
* var cont = this.getAttribute("id"); // não encontrei forma melhor =X*
* for( var i=0; i < el.length; i++ )*
el[1].className = '';
el[cont].className = 'bloco'; // mostra a notícia atual, ao passar o mouse
}//fecha mouseOver
* nav**.onmouseout = function(){*
this.style.backgroundColor = '#fff';
for( var i=0; i < el.length; i++ )
* el**.className = '';*
var cont = this.getAttribute("id"); // não achei forma melhor para pegar parâmetro e fazer ligação entre lista e noticia
el[cont].className = 'bloco'; // mantém a notícia atual mesmo ao tirar o mouse
}//fecha mouseOut
}
}// carregando tudo no onLoad, não obstrutivo
*</script>*
*</head>*
*<body>*
*<?php*
$link = mysql_connect("localhost", "ospionei_site", "123123");
mysql_select_db("ospionei_site", $link);
$result = mysql_query("SELECT FROM destaques order by id desc", $link);*
$linhas = mysql_num_rows($result);
*?>*
*<div id="quadro">*
* <ul id="noticias">*
*<?php*
$i = 1;
while ($vetor=mysql_fetch_array($result))
{
if( $i == 1 )
$class = ' class="bloco"';
else
$class = '';
$i++;
echo "\t\t".'<li'.$class.'><a href="'.$vetor[1].'" target="_blank"><img src="imgs/destaques/'.$vetor[2].'" alt=""width="450" height="220" border="0" /></a></li>'."\n";
}
*?>*
* </ul><!-- /noticias -->*
*</div><!-- /quadro -->*
*</body>*
*</html>*
esse codigo fui auxiliado aqui no forum.
Grata
Carregando comentários...