Results 1 to 3 of 3

Thread: Ultimate Fade-in Slideshow - swiping permanently disables automatic default behaviour

  1. #1
    Join Date
    Jun 2016
    Location
    UK
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Ultimate Fade-in Slideshow - swiping permanently disables automatic default behaviour

    1) Script Title: Ultimate Fade-in slideshow (v2.6.1)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...nslideshow.htm

    3) Describe problem:

    (This problem can be observed on the official DD script page)

    The official DD script page utilises the fadeslideshow.js script in conjunction with the optional jquery.touchSwipe.min.js script, which adds SWIPE functionality to the basic script.

    When the slideshow loads and starts, the images automatically change every few seconds as expected.

    However, if the images are optionally SWIPED (eg on a smartphone screen, or using mouse click and drag on a desktop), the act of using the swipe facility seems to permanently cancel the default automatic image change behaviour, and the slideshow remains static after the final swipe.

    I had hoped that after a short wait without any further swipe activity, the script would revert to its default behaviour, with images automatically changing every few seconds once again. This is the behaviour I have most often seen with other popular slideshows scripts.

    How is it possible to change the current script behaviour so that the slideshow reverts to default automatic image change behaviour a few seconds after swipe activity ceases?

    Any advice much appreciated. This is such a nice, reliable script, and I would hate to change. But it's hard to justify this script behaviour to the average 'swiping' web user, unfortunately.

    Many thanks!

    Regards,

    Paul

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That's the intended behavior (also - if you click/touch next or previous, it exits auto mode - if auto mode was enabled to begin with that is, again - the intended behavior). See:

    http://www.dynamicdrive.com/forums/e...e-in-slideshow

    for an add-on script that allows for many options, one of which is a resume after x number of microseconds.

    Any questions about/issues with its use, feel free to ask.
    Last edited by jscheuer1; 06-30-2016 at 03:31 AM. Reason: add info
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    Paul8888 (07-05-2016)

  4. #3
    Join Date
    Jun 2016
    Location
    UK
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    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

Similar Threads

  1. Ultimate Fade-in slideshow (v2.4) - fade description text
    By kwakker35 in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 02-06-2012, 04:13 PM
  2. Default Ultimate Fade-in slideshow (v2.0)
    By homey in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 06-23-2011, 12:30 PM
  3. Replies: 3
    Last Post: 07-12-2010, 04:04 PM
  4. Replies: 2
    Last Post: 01-19-2010, 03:53 AM
  5. Default background on Fade-in Slideshow
    By eieri in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 09-14-2009, 05:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •