This issue is probably misplaced and could easily be considered a jQuery/Slideshow Creator issue. Here is the problem:

When using the Drupal module Slideshow Creator for page content and Lightbox to pop a video, the Slideshow continues to play (properly might I add) while Lightbox plays the video properly. Some people find the changing slideshow under the video to be distracting.

So basically I just need a way to pause/resume the slideshow. On lightbox pop, I need to call:

$('#slideshow').cycle('pause');

And on lightbox close:
$('#slideshow').cycle('resume');

But I am not familiar with JavaScript enough to know how to find and interact with the slideshow object from within Lightbox.js

Any pointers?

Comments

stella’s picture

Status: Active » Fixed

It's probably more an issue for the jquery cycle / slideshow module. Though you probably just need some custom javascript code loaded on that page which when the image is clicked, pauses the slideshow as you described above. Maybe something like:

    $("a[@rel^='lightbox'], area[@rel^='lightbox']").click(function(e) {
      $('#slideshow').cycle('pause');
      return false;
    });

Then resume the slideshow when the lightbox X button is clicked.

voodoodrul’s picture

Thanks for the response Stella. This simple issue is getting frustrating quickly because no matter what I try I can't pause the slideshow.

I have tried:
welcome

function pauseSlideshow() { $('#slideshow').cycle('pause')); };

I have also tried

welcome

The problem here, I think, is that $('#slideshow') is not a reference to the actual slideshow object.

stella’s picture

Project: Lightbox2 » Slideshow Creator
Version: 6.x-1.9 » 6.x-1.32
Component: Javascript » Code
Status: Fixed » Active
brmassa’s picture

Guys, there is a drupal.org initiative about unifying some modules. Since Slideshow Creator is by far less powerful and flexible and other solutions, I will not support it more. Please, take a look on other similar modules.

brmassa’s picture

Status: Active » Closed (won't fix)