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
Comment #1
stella commentedIt'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:
Then resume the slideshow when the lightbox X button is clicked.
Comment #2
voodoodrul commentedThanks 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:
function pauseSlideshow() { $('#slideshow').cycle('pause')); };welcome
I have also tried
welcome
The problem here, I think, is that $('#slideshow') is not a reference to the actual slideshow object.
Comment #3
stella commentedComment #4
brmassa commentedGuys, 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.
Comment #5
brmassa commented