John,
Many thanks for recommending your ExtraButtons add-on script for Ultimate Fade-In Slideshow. (Sorry for the delay in responding - I was away for a few days).
Your script is working perfectly and achieves exactly what I was looking for, ie to modify the (intended) default behaviour of Ultimate Fade-In Slideshow so that the slideshow resumes its automatic image changing sequence following a Swipe event (which, by default, terminates the automatic image changing sequence).
As I'm effectively only utilising a small part of your ExtraButtons functionality, I'll show below exactly what code I used to achieve the specific result I wanted. This might be helpful for someone with similar requirements.
Code:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script type="text/javascript" src="fadeslideshow.js"></script>
<script type="text/javascript" src="jquery.touchSwipe.min.js"></script>
<script type="text/javascript" src="extrabuttons.js"></script>
<script type="text/javascript">
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [940, 350], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["http://www.xyzxyzxyz.co.uk/graphics/banner1.jpg"],
["http://www.xyzxyzxyz.co.uk/graphics/banner2.jpg"],
["http://www.xyzxyzxyz.co.uk/graphics/banner3.jpg"],
["http://www.xyzxyzxyz.co.uk/graphics/banner4.jpg"] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:7000, cycles:0, wraparound:false, randomize:true},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 1500, //transition duration (milliseconds)
descreveal: "none",
togglerid: "fadeshow1toggler",
extrabuttons: {pause: 7000, swiperesume: true}
})
</script>
For anyone with my own specific requirements, the important things to remember are to add the extrabuttons.js script call; insert something in the togglerid field (for my purposes it was not necessary to actually include div code in the CSS or HTML, as no visible buttons are being created); add the extrabuttons settings (pause and swiperesume) as shown.
Many thanks, John, for your great script and helpful advice!
Paul
Bookmarks