Jump to content
fabiodurgante

lightbox abrir fora tela cheia fora do iframe

Recommended Posts

ola tenho um index principal que contem iframe

<link rel="stylesheet" href="css/lightbox.min.css">
<script src="js/lightbox-plus-jquery.min.js"></script>

<script type="text/javascript">
  function frameload(iframe) {
    var doc = iframe.contentWindow || iframe.contentDocument;
    if (doc.document) { doc = doc.document; };

    $('.lightbox', doc.body).lightbox();
  };
</script>

no iframe tenho um lightbox quando clico abre lightbox dentro do iframe quero abrir no parent tela cheia mas nao consigo fazer

<link rel="stylesheet" href="css/lightbox.min.css">
<script src="js/lightbox-plus-jquery.min.js"></script>

<link rel="stylesheet" href="css/lightbox.min.css">
<script src="js/lightbox-plus-jquery.min.js"></script>

 

  <a class="example-image-link"href="teste.jpg" data-lightbox="example-1" target="_parent">
                                  <img class="example-image" src="images/click.png" width="50px" target="_parent"  >
                                </a>

 

nao abre no parent no index somente funciona dentro do iframe como poderia fazer ????

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Ao usar o fórum, você concorda com nossos Terms of Use.