I have jQuery animating a div with an embedded YouTube video in it.
I have it set so that when you close the video, the div hides and the movie stops. However, if I want to get the movie back I can't.
I was wondering if there was a callback that could reset the chain of events?
This is the jQuery I'm using:
$("#trigger2").click(function () {
$( "#movie" ).animate({bottom: 0}, {duration:1000});
$(".close").delay(1500).fadeIn('slow')
});
$(".close").click(function () {
$("#movie").hide();
var $player = $("#movie").detach();
});