Ir para conteúdo

POWERED BY:

Arquivado

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

fabio Avila

Não exibe iimagem no Firefox

Recommended Posts

Ola amigos ,

 

Estou com um problema e não sei como resolver , tenho um script de noticias em slides em meu site só que no IE ele está mostrano normalmente a imagem de fundo quando se passa de uma notica para a outra só que no Mozzila Firefox esta imagem não aparece.. alguem pode me ajudar..

 

Obrigado!

 


<%
if request("CarregaNoticia") = "S" then%>
   <html>
   <body>
   <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>

   <table align=center width=600 border=0>
       <tr align=right>
           <td><font face="Arial" size="5" onclick=javascript:window.close() style=cursor:hand title="Clique para fechar a not�cia."><u>X Fechar</u></font></td>    
       </tr>
        <tr>
           <td height=5></td>
       </tr>
       <%
       if request("asp_titulo") <> "" then%>
           <tr align=center>
               <td><font face="Arial" size="5"><b><%=request("asp_titulo")%></b></font></td>    
           </tr>
           <tr>
               <td height=15></td>
           </tr>
       <%
       end if

       if request("asp_imagem") <> "" then%>
           <tr align=center>
               <td><img src="imagens/<%=request("asp_imagem")%>" border=0 width=450 height=255></td>    
           </tr>
           <tr>
               <td height=15></td>
           </tr>
       <%
       end if

       if request("asp_noticia") <> "" then%>
           <tr align=center>
               <td><font face="Arial" size="2"><%=request("asp_noticia")%></font></td>    
           </tr>
       <%
       end if%>
   </table>

   </body>
   </html>
   <%
   response.end
end if

Dim oConn
Dim oRs
Dim filePath
filePath = Server.MapPath("\noticias\noticias\noticias.mdb")

Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & filePath
Set Rs = Server.CreateObject("ADODB.Recordset")
Set Rs = Conn.Execute("select * from noticias")

if not Rs.EOF then
   mNoticia = Rs.GetRows()
   asp_num_noticia = ubound(mNoticia,2)
else
   asp_num_noticia = -1
end if
Rs.close
Set Conn = nothing

asp_titulo1=""
asp_titulo2=""
asp_titulo3=""
asp_titulo4=""

asp_imagem1=""
asp_imagem2=""
asp_imagem3=""
asp_imagem4=""

asp_noticia1=""
asp_noticia2=""
asp_noticia3=""
asp_noticia4=""
for i=0 to asp_num_noticia

   if i=0 then
       asp_titulo1=trim(mNoticia(1,i))
       asp_imagem1=trim(mNoticia(4,i))
       asp_noticia1=trim(mNoticia(3,i))
   elseif i=1 then
       asp_titulo2=trim(mNoticia(1,i))
       asp_imagem2=trim(mNoticia(4,i))
       asp_noticia2=trim(mNoticia(3,i))
   elseif i=2 then
       asp_titulo3=trim(mNoticia(1,i))
       asp_imagem3=trim(mNoticia(4,i))
       asp_noticia3=trim(mNoticia(3,i))
   else
       asp_titulo4=trim(mNoticia(1,i))
       asp_imagem4=trim(mNoticia(4,i))
       asp_noticia4=trim(mNoticia(3,i))
   end if

   'response.write mNoticia(0,i) & " | " & mNoticia(1,i) & " | " & mNoticia(2,i) & " | " & mNoticia(3,i) & " | " & mNoticia(4,i) & " | " & mNoticia(5,i)

   'image=mNoticia(4,i)
next

%>
<script language=javascript>

   function Carregar(tipo, menu, img) {
       if (tipo == 1) {
           diff = 2000
           if (menu == "menu1") {
               document.getElementById("ft_1").style.color = "white"
               document.getElementById("ft_2").style.color = "#575757"
               document.getElementById("ft_3").style.color = "#575757"
               document.getElementById("ft_4").style.color = "#575757"
               document.getElementById("menu2").background = ""
               document.getElementById("menu3").background = ""
               document.getElementById("menu4").background = ""
           }
           else if (menu == "menu2") {
           document.getElementById("ft_2").style.color = "white"
           document.getElementById("ft_1").style.color = "#575757"
           document.getElementById("ft_3").style.color = "#575757"
           document.getElementById("ft_4").style.color = "#575757"
           document.getElementById("menu1").background = ""
           document.getElementById("menu3").background = ""
           document.getElementById("menu4").background = ""
           }
           else if (menu == "menu3") {
           document.getElementById("ft_3").style.color = "white"
           document.getElementById("ft_2").style.color = "#575757"
           document.getElementById("ft_1").style.color = "#575757"
           document.getElementById("ft_4").style.color = "#575757"
           document.getElementById("menu2").background = ""
           document.getElementById("menu1").background = ""
           document.getElementById("menu4").background = ""
           }
           else if (menu == "menu4") {
           document.getElementById("ft_4").style.color = "white"
           document.getElementById("ft_2").style.color = "#575757"
           document.getElementById("ft_3").style.color = "#575757"
           document.getElementById("ft_1").style.color = "#575757"
           document.getElementById("menu2").background = ""
           document.getElementById("menu3").background = ""
           document.getElementById("menu1").background = ""
           }

           document.getElementById(menu).background = "fundoSeta.jpg"
           if (img != "") {
               document.getElementById("menuImagem").innerHTML = "<img src='imagens/" + img + "' border=0 width=450 height=255>"
           }
           else {
               document.getElementById("menuImagem").innerHTML = "<font size=2>Imagem n�o dispon�vel</font>"
           }               
       }
       else {
           diff = 10

       }
   }
   function Carregar2(tipo, menu, img) {

       if (tipo == 1) {

           if (menu == "menu1") {
               document.getElementById("ft_1").style.color = "white"
           }
           else if (menu == "menu2") {
               document.getElementById("ft_2").style.color = "white"
           }
           else if (menu == "menu3") {
               document.getElementById("ft_3").style.color = "white"
           }
           else if (menu == "menu4") {
               document.getElementById("ft_4").style.color = "white"
           }

           document.getElementById(menu).background = "fundoSeta.jpg"
           if (img != "") {
               document.getElementById("menuImagem").innerHTML = "<img src='imagens/" + img + "' border=0 width=450 height=255>"
           }
           else {
               document.getElementById("menuImagem").innerHTML = "<font size=2>Imagem n�o dispon�vel</font>"
           }
       }
       else {
           if (menu == "menu1") {
               document.getElementById("ft_1").style.color = "#000000"
           }
           else if (menu == "menu2") {
               document.getElementById("ft_2").style.color = "#000000"
           }
           else if (menu == "menu3") {
               document.getElementById("ft_3").style.color = "#000000"
           }
           else if (menu == "menu4") {
               document.getElementById("ft_4").style.color = "#000000"
           }

           document.getElementById(menu).background = ""
       }
   }

   function Inicio() {
       Carregar2(1, 'menu1', '<%=asp_imagem1%>')
       timer(10)
   }
   function timer(qual) {

       diff = qual - 1;
    //   document.getElementById("contador").innerText = diff 
       if (diff == 1) {

           if (document.getElementById("ft_1").style.color == "white") {
               Carregar2(1, 'menu2', '<%=asp_imagem2%>')
               Carregar2(2, 'menu1', '<%=asp_imagem2%>')
               diff = 10
           }
           else if (document.getElementById("ft_2").style.color == "white") {
           Carregar2(1, 'menu3', '<%=asp_imagem3%>')
           Carregar2(2, 'menu2', '<%=asp_imagem3%>')

           diff = 10
           }
           else if (document.getElementById("ft_3").style.color == "white") {
           Carregar2(1, 'menu4', '<%=asp_imagem4%>')
           Carregar2(2, 'menu3', '<%=asp_imagem4%>')
           diff = 10
           }
           else if (document.getElementById("ft_4").style.color == "white") {
           Carregar2(1, 'menu1', '<%=asp_imagem1%>')
           Carregar2(2, 'menu4', '<%=asp_imagem1%>')
           diff = 10
           }
       };
       window.setTimeout("timer(diff)", 1000);
   }
   function FuncImagem(tipo)
   {
       if (tipo == 1)
       { diff = 2000 }
       else
       { diff = 10 }
   }
   function AbreNoticia(id)
   {
       url = "exibir_noticia.asp?CarregaNoticia=S"
       url = url + "&asp_titulo=" + document.getElementById("txt_titulo"+id).value
       url = url + "&asp_noticia=" + document.getElementById("txt_noticia"+id).value
       url = url + "&asp_imagem=" + document.getElementById("txt_imagem"+id).value
       window.open(url)

   }
   </script>

<html>
<body onload="JAVASCRIPT:Inicio()">
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
<table cellpadding=0 cellspacing=0 bgcolor="#006654" width="809" height="262">
   <tr bgcolor="#E8E8E8">
       <td rowspan=7 width=450 id=menuImagem bgcolor=#3D8D7E align=center onmouseover="javascript:FuncImagem(1)" onmouseout="javascript:FuncImagem(2)" height="262"></td>
       <td width=359 height=60 align=left id=menu1 bgcolor="#3D8D7E">
           <table border=0 width=359 height=100%>
               <tr>
                   <td width=25></td>
                   <td style=cursor:hand  onclick="javascript:AbreNoticia(1)" onmouseover=javascript:Carregar(1,'menu1','<%=asp_imagem1%>')  onmouseout=javascript:Carregar(2,'menu1','') width="324"><font face="Arial" size="2" color="#3D8D7E" id=ft_1><b><%=asp_titulo1%></b></font></td>
               </tr>
           </table>
       </td>
   </tr>

   <tr bgcolor=white>
       <td width=359 height=5></td>
   </tr>

   <tr bgcolor=#E8E8E8>
       <td width=359 height=60 align=left id=menu2 bgcolor="#3D8D7E">
           <table border=0 width=357 height=100% style=cursor:hand    onclick="javascript:AbreNoticia(2)" onmouseover=javascript:Carregar(1,'menu2','<%=asp_imagem2%>')  onmouseout=javascript:Carregar(2,'menu2','')><tr>
             <td width=25></td><td width="322"><font face="Arial" size="2" color="#575757" id=ft_2><b><%=asp_titulo2%></b></font></td></tr></table></td>
   </tr>

   <tr bgcolor=#3D8D7E>
       <td width=359 height=5 bgcolor="#FFFFFF"></td>
   </tr>

   <tr bgcolor=#3D8D7E>
       <td width=359 height=60 align=left id=menu3>
       <table border=0 width=356 height=100% style=cursor:hand    onclick="javascript:AbreNoticia(3)" onmouseover=javascript:Carregar(1,'menu3','<%=asp_imagem3%>')  onmouseout=javascript:Carregar(2,'menu3','')><tr>
         <td width=25 bgcolor="#3D8D7E"></td><td bgcolor="#3D8D7E" width="321"><font face="Arial" size="2" color="#575757"  id=ft_3><b><%=asp_titulo3%></b></font></td></tr></table></td>
   </tr>

   <tr bgcolor=#3D8D7E>
       <td width=359 height=5 bgcolor="#FFFFFF"></td>
   </tr>

   <tr bgcolor=#3D8D7E>
       <td width=359 height=67 align=left id=menu4>
       <table border=0 width=355 height=100% style=cursor:hand    onclick="javascript:AbreNoticia(4)" onmouseover=javascript:Carregar(1,'menu4','<%=asp_imagem4%>')  onmouseout=javascript:Carregar(2,'menu4','')><tr>
         <td width=25 bgcolor="#3D8D7E"></td><td bgcolor="#3D8D7E" width="320"><font face="Arial" size="2"color="#575757"  id=ft_4><b><%=asp_titulo4%></b></font></td></tr></table></td>
   </tr>

</table>

<table>
   <tr>
       <td>
           <input id="txt_titulo1" type="hidden" value="<%=asp_titulo1%>" />
           <input id="txt_titulo2" type="hidden" value="<%=asp_titulo2%>" />
           <input id="txt_titulo3" type="hidden" value="<%=asp_titulo3%>" />
           <input id="txt_titulo4" type="hidden" value="<%=asp_titulo4%>" />

           <input id="txt_noticia1" type="hidden" value="<%=asp_noticia1%>" />
           <input id="txt_noticia2" type="hidden" value="<%=asp_noticia2%>" />
           <input id="txt_noticia3" type="hidden" value="<%=asp_noticia3%>" />
           <input id="txt_noticia4" type="hidden" value="<%=asp_noticia4%>" />

           <input id="txt_imagem1" type="hidden" value="<%=asp_imagem1%>" />
           <input id="txt_imagem2" type="hidden" value="<%=asp_imagem2%>" />
           <input id="txt_imagem3" type="hidden" value="<%=asp_imagem3%>" />
           <input id="txt_imagem4" type="hidden" value="<%=asp_imagem4%>" />
</td>
   </tr>
</table>

<Label id=contador></label>
</body>
</html>

Compartilhar este post


Link para o post
Compartilhar em outros sites

Se mostra no ie, sinal que o problema deve ser no javascript / jquery, pois se fosse problema no asp não exibiria em navegador nenhum ou aparecia algum erro.

 

Se quiser, posso mover sua duvida para o pessoal do javascript

Compartilhar este post


Link para o post
Compartilhar em outros sites

aperte Ctrl+Shift+J no teu Firefox, clique em Limpar.

 

Execute a tua página, e veja qual erro aparece lá. Corrija.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Esse é um erro de css, não deveria interferir.

 

poste um link para tua página online.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Segue ,

 

http://www.ligaregionalesportes.com/noticias/noticias/exibir_noticia.asp

 

ABc

 

Caros amigos alguem tem ideia do que posso estar fazendo de errado para não aparecer no FIREFOX o a SETA DE FUNDO da Noticias ....

 

Obrigado ....

Estou usando firefox e aqui está aparecendo normal.

Não seria a versão do seu firefox que está desatualizada ?

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.