Jump to content

How to open a link in a lightbox?


Recommended Posts

Since PS 1.5 ps use fancybox, there is a lot of information about this plug-in in google, a simple usage would be:

<script type="text/javascript">
    $('document').ready(function(){
        $('#link').fancybox();
    });
</script>

<a id="link" href="#content">Show content</a>

<div id="content">
    Content here....
</div>
  • Like 1
Link to comment
Share on other sites

Below code opens the fancybox page, writes "contacting Facebook..." and goes to white. What do you think the problem is. Thanks for your help.

 

The link is:  http://istanbuldabuhaftasonu.com/12-cumartesi-istanbul-etkinlikleri

(I also added the official facebook share button, but I prefer the addthis api)

 

-------------------

 

<script type="text/javascript">
    $(document).ready(function() {
        $('.fancy').fancybox({
            'width'             : '75%',
            'height'            : '75%',
            'autoScale'         : false,
            'transitionIn'      : 'none',
            'transitionOut'     : 'none',
            'type'              : 'iframe'
        });
    });
</script>

 

<div class="fb-share-button" data-href="{$product.link|escape:'html':'UTF-8'}" data-type="button_count">
</div>

<!-- AddThis Button BEGIN -->
<a class="fancy" href="http://api.addthis.com/oexchange/0.8/forward/facebook/offer?pco=tbx32nj-1.0&url={$product.link|escape:'html':'UTF-8'}&rel={$product.link|escape:'html':'UTF-8'}&pubid=ra-538cf86d20af3c18"><img src="http://cache.addthiscdn.com/icons/v1/thumbs/32x32/facebook.png" border="0" alt="Facebook" /></a>

<a class="fancy" href="http://api.addthis.com/oexchange/0.8/forward/twitter/offer?pco=tbx32nj-1.0&url={$product.link|escape:'html':'UTF-8'}&pubid=ra-538cf86d20af3c18"><img src="http://cache.addthiscdn.com/icons/v1/thumbs/32x32/twitter.png" border="0" alt="Twitter" /></a>

<a class="fancy" href="http://www.addthis.com/bookmark.php?source=tbx32nj-1.0&=300&pubid=ra-538cf86d20af3c18&url={$product.link|escape:'html':'UTF-8'}" target="_blank"  ><img src="http://cache.addthiscdn.com/icons/v1/thumbs/32x32/more.png" border="0" alt="More..." /></a>
<!-- AddThis Button END -->

Link to comment
Share on other sites

  • 1 year later...
  • 1 year later...

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
×
×
  • Create New...