How to display the external links in the dialog box instead of showing in a new window
1 Answers
Hello German,
you could you fancy box like this
$col[“default”] = ‘<a class=”fancybox” href=”{your_link}”><img height=”50″ src=”{your_link}” alt=”{link_name}” title=”{link_name}” /></a>’;
<!– Add fancyBox main JS and CSS files –>
<link type=”text/css” rel=”stylesheet” href=”//cdn.jsdelivr.net/fancybox/2.1.4/jquery.fancybox.css” />
<script type=”text/javascript” src=”//cdn.jsdelivr.net/fancybox/2.1.4/jquery.fancybox.js”></script>
<script>
$(document).ready(function() {
$(‘.fancybox’).fancybox();
});
</script>
Your Answer