i recommend to be able to start playing the Slide-show on hover and stop on roll-out also if there is an option to go to image #1 when we roll out

with this feature we will be able to make views field as a thumbnail but it's a slide show when we roll over it

Thank you

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

redndahead’s picture

Status: Active » Closed (won't fix)

I think this is something you'll have to implement using your own javascript. I don't think this is an option I want to implement.

thalism’s picture

I need this feature too... but I have no idea how to do this.

DustinYoder’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev

I would also use this feature. It should be easy enough to add as an option next to the 'pause' on mouseover.

DustinYoder’s picture

Version: 7.x-3.x-dev » 7.x-3.0
FileSize
15.17 KB

Here is the feature implemented in 7.x-3.0 I have included the 2 files I modified and you can find the edits by searching for the word 'CARLISLE' there should be 3 sections where I added code.

DustinYoder’s picture

Status: Closed (won't fix) » Needs review
burningdog’s picture

Version: 7.x-3.0 » 7.x-3.x-dev
Component: SingleFrame » Cycle
Issue summary: View changes
Status: Needs review » Needs work
FileSize
2.49 KB

I'd also like this. Facebook have implemented this in their photo Albums: in an album listing, the slideshow starts when mousing over an Album image.

I've put #4 into a patch. The problem is it doesn't work. More specifically, the 'hover' event is not picked up by the javascript unless the slideshow is actually playing.

To verify, set up a new slideshow, and set it to start paused. Add some controls so that you can see when the 'hover' event is picked up (i.e. the controls say either "pause" or "resume"). Check the new 'Play on hover' checkbox in the slideshow settings. Then preview the slideshow.

Hover over the slideshow image, and notice that nothing happens. Then use the controls to play and immediately pause the slideshow. Move the cursor away, and then back over the slideshow - it will start playing.

I think this bug is by design, i.e. the creators never considered the possibility that there would be some interaction with the slideshow before it started playing. I can't see where in the code this is set.

burningdog’s picture

Status: Needs work » Needs review
FileSize
2.5 KB

Ooh, thanks to sideswitch for pointing me to #7 at #985712: check for state pause==1 right before cycle resume to allow custom pause which shows we can force the playing of the slideshow, like so:

 Drupal.viewsSlideshow.action({ "action": 'play', "slideshowID": [slideshowid], "force": true });

And that works! Patch attached.

NickDickinsonWilde’s picture

Assigned: Unassigned » NickDickinsonWilde
Status: Needs review » Active

  • NickWilde committed 445cb68 on 7.x-3.x authored by burningdog
    Issue #956356 by burningdog, DustinYoder, NickWilde: Views Slide Show...
NickDickinsonWilde’s picture

Assigned: NickDickinsonWilde » Unassigned
Status: Active » Fixed

Adjust it slightly more, added states to the checkbox in the config so that you can't select 'play on hover' and 'pause on hover' at the same time.
Thanks for the patch!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.