0
I’m using a small ajax code to open some links! Only sometimes these links have some videos!! And even that loads!! But the problem is that these links are opened in a lightbox! And when you close the lightbox the video keeps running!! Which sucks! Because actually only closes the lightbox! It does not "close" the link!
How do you perform this link "shutdown" once you close the lightbox?
Script by Lightbox
$(document).ready(function() {
$('.lightbox').click(function(){
$('.background, .box').animate({'opacity':'.9'}, 1, 'linear');
$('.box').animate({'opacity':'1.00'}, 1, 'linear');
$('.background, .box').css('display','block');
});
$('.close').click(function(){
$('.background, .box').animate({'opacity':'0'}, 1, 'linear', function(){
$('.background, .box').css('display','none');
});
});
});
Ajax code
//Carregamento AJAX
function pag(brl)
{
var url = eval("brl");
$( "#content" ).load(url, function(e) {
e.preventDefault()
});
}
The Link Is Like:::
<a class="home lightbox" href="#!" onclick="pag('urlaseraerta.php');">link</a>