I'd like to request the ability to pause the slideshow so that a user can review a node at length if it contains a lot of information.

A pause/play button that can be styled would be great.

Ideally, all the controls could be clustered so you'd have << || >> ( prev pause/play next ).

Thanks!

CommentFileSizeAuthor
#9 as_pause.patch916 bytesudig
#5 mouseover_pause.patch1.44 KBchasingmaxwell

Comments

udig’s picture

Indeed relevant feature. Will be added to the features backlog.
(if there's anyone volunteering to commit this as a patch - you're most welcomed!)
Thanks.

spasmody’s picture

subscribe

spasmody’s picture

I suggest a on-mouse-hover pause, like ddblock module feature

chasingmaxwell’s picture

This would be a really helpful feature. I favor the on-mouse-hover pause option.

chasingmaxwell’s picture

StatusFileSize
new1.44 KB

I added the mouseover pause functionality to the javascript file in this patch. I'm not very knowledgeable about working with drupal modules, so maybe someone else could add a setting in the module to turn this functionality on and off.

Kapox’s picture

Is it just me or does this patch not work? Still sliding even if I hover the slider..

*edit* I just noticed that it's for 2.0 does it work with 3.0?

chasingmaxwell’s picture

I actually wrote it in 3.0. Didn't see that this issue was for 2.0. This was the first patch I've submitted so its very possible I made a mistake. However, it works well for me. I utilized the jquery functions mouseenter and mouseleave. Perhaps this is where the issue is? I thought since this module is dependent on jQuery Plugins that these functions would be available to everyone who had this module enabled. Maybe not?

jweedman’s picture

I had an idea on this, and it seems to work for now - but I would agree it's not a great fix:

I read on another issue for Ajax Slideshow, where a guy needed his slideshow to be manual, and have NO auto animation. His fix, or another person's suggested fix, was to set the slide duration ridiculously high. ie - 999999.

That sort of gave me an idea. You can use javascript (jQuery) to dynamically set the slide duration very high, AFTER a user has clicked a thumbnail. (This duration is set within the module's admin interface, and called in 'ajax_slideshow.js' by the variable "Drupal.settings.ajax_slideshow.slide_duration")

Essentially, this gives a user the ability to be watching a slideshow, then when they decide to navigate the slideshow manually, the animation stops (almost anyway). This is what I used. Hope it helps. Still, I'd like to see a bit "cleaner" solution.

<script>
$(".thumbnail-selector").click(function(){
	Drupal.settings.ajax_slideshow.slide_duration = 999999;
});
</script>
udig’s picture

StatusFileSize
new916 bytes

The line which causes the constant rotation is 118 (at the js file). Basically each time a tab is switched (either manually by click or automatically) the onClick callback is called and a new timeout is set.
Thus removing this line will ensure that when a tab is clicked no timeout is set.
Now we need to trigger the auto slide progress when the slideshow starts - we do that by setting a timeout at the initialization function and making the slideshow keep on progressing at the changeTab function.

Not too clear explanation however a patch for v3.0 is attached... (not tested thoroughly though).