Ir para conteúdo

POWERED BY:

Arquivado

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

fabiodurgante

lightbox google crome

Recommended Posts

tenho o meu index.html nele tenho o seguinte codigo q abre o lightbox, nesse html tenho um iframe q abre os outros html nesse iframe

   <script type="text/javascript">
$(function(){
$('iframe').load(function(){
 $(this).contents().find('div#gallery > ul > li a').lightBox();
});
});

</script>

 

no iframe tenho o seguinte que chama o lightbox

<div id="gallery" >
	Fotos
<ul>

            <li>
           <a href="fotos/4.jpg" title="fotos 2004">
               <img src="fotos/4.jpg" width="72" height="72" alt="" />
           </a>
       </li>
    		<br/>

	<input type="button"  value="VOLTAR" onClick='fechar()'/>

   </ul>



</div>

 

no internet explorer e firefox funciona beleza no google cromes nao abre o lightbox so abre a imagem no tamanho real quando clicado no Thumbnails, o que poderia ser feito ???

Compartilhar este post


Link para o post
Compartilhar em outros sites

aperte Ctrl+Shift+J no Chrome, e veja oque aparece no console.

 

você está rodando apartir de um servidor web, certo ?

Compartilhar este post


Link para o post
Compartilhar em outros sites

isso os arquivos estao hospedados no servidor mas nao abre no crome

 

é tipo nao acha o lightbox a tela nao fica escura e abre direto a imagem no tamanho real dela

 

quando eu clico na imagem para abrir o lightbox aparece o seguinte

 

Unsafe JavaScript attempt to access frame with URL file:///D:/NaPload/fotos/grito/1.jpg from frame with URL file:///D:/Na/index.htm. Domains, protocols and ports must match.

Compartilhar este post


Link para o post
Compartilhar em outros sites

o caminho está errado.

 

poste um link para o site.

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.