• Hey there,

    I’m using the pro version of the software and I’m using it to display some comics, some of which are fairly long vertical images.

    When you get down to the bottom and click to go to the next image, it loads it up great but the browser stays right where it is, sometimes ruining the last panel of story for the reader, and then the viewer has to scroll all the way back up to start from the top.

    I know this is expected behavior, but is there any way to add some javascript to force the viewer back to the top of the screen when they click for the next image?

    If I could pull this off then this would be perfect. thanks!

    https://www.ads-software.com/extend/plugins/slideshow-gallery-pro/

Viewing 1 replies (of 1 total)
  • Plugin Author cpres

    (@cpres)

    Hey jg. First off, love the comic and your utilization of the plugin. Second off, you can certainly do this but you’re going to have become a little proficient at jQuery.

    Using $().live and something…

    jQuery(“#imgnext”).live(“click”, function(){ jQuery(“div.page”).scrollTop(20) });

    I haven’t tried this yet, but this should point in you in the direction you’re looking for. the jQuery api docs are a good place to start:
    https://api.jquery.com/scrollTop/
    https://api.jquery.com/live/

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Slideshow Gallery Pro] Jump back to top of window on next image’ is closed to new replies.