Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
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
Comment | File | Size | Author |
---|---|---|---|
#7 | play_on_hover-956356-7.patch | 2.5 KB | burningdog |
#6 | play_on_hover-956356-6.patch | 2.49 KB | burningdog |
#4 | views_slideshow - CARLISLE EDITED FILES.zip | 15.17 KB | DustinYoder |
Comments
Comment #1
redndahead CreditAttribution: redndahead commentedI 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.
Comment #2
thalism CreditAttribution: thalism commentedI need this feature too... but I have no idea how to do this.
Comment #3
DustinYoder CreditAttribution: DustinYoder commentedI would also use this feature. It should be easy enough to add as an option next to the 'pause' on mouseover.
Comment #4
DustinYoder CreditAttribution: DustinYoder commentedHere 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.
Comment #5
DustinYoder CreditAttribution: DustinYoder commentedComment #6
burningdog CreditAttribution: burningdog commentedI'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.
Comment #7
burningdog CreditAttribution: burningdog commentedOoh, 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:
And that works! Patch attached.
Comment #8
NickDickinsonWildeComment #10
NickDickinsonWildeAdjust 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!