You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Stop or play slideshow when open or close overlay ?! Created Aug 31, 2010

This thread is solved

Views: 623     Replies: 1     Last reply Aug 31, 2010  
You must login first before you can use this feature

tonib

Posts: 2

Registered:
Jul 23, 2010

Stop or play slideshow when open or close overlay ?!

Posted: Aug 31, 2010

Hello,

The problem is, when I play at the same times slideshow and overlay containing an .flv, the video play slow. So i need to stop the slideshow.

It's what I'm doing with :

<a rel="#mies1" id="bouton_video" onClick='$(".slidetabs").data("slideshow").stop();'></a>

But now I need to play the slideshow again when I close the overlay with the close button from the overlay (class="close")

So I try something like that but it doesn't work :

$(".close").click(function(){$(".slidetabs").data("slideshow").play();});

What's wrong... how sould I do ?!
Thanks

tonib

Posts: 2

Registered:
Jul 23, 2010

» Stop or play slideshow when open or close overlay ?!

Posted: Aug 31, 2010

Reply to: Stop or play slideshow when open or close overlay ?!, from tonib
So now I do that :


$(document).ready(
	function(){

	var api = $(".slidetabs").data("slideshow");

	$("a[rel]").overlay({
	onLoad: function() {api.stop();},
	onClose: function() {api.play();},
	top:'10%', mask:{color:'#000', opacity: 0.5}});
});

"Stop" works but not "play" !

What's wrong with that ?