NextGEN Gallery
[resolved] Slideshow Page Position (7 posts)

  1. roostertail
    Posted 4 years ago #

    After creating and displaying a gallery it offers, on the page itself, the option to start a slideshow. When I click on this option I return to the top of the page and have to scroll down to watch the slideshow.

    Is there a way to stay in the original position where I was before I pushed the slideshow option?

    Thanks, Nick


  2. tizz
    Posted 4 years ago #

    Is this resolved? In which way?

    When I click on the option for slideshow, page return to the top and I have to scroll down to watch the slideshow.

    Was the same with images viewed in shutter, but for this I found the solution.

    There's a way to remain at the same place, everytime we open gallery or slideshow?

  3. Daluxe
    Posted 4 years ago #

    The problem here is, that the slideshow Link has href="#" which is an anchor for the top of the page. I guess that an onclick="do_something();return false;" should solve this problem and leave the href empty.

    PS: do_something(); is just a placeholder for whatever slideshow-function will be executed by that link... just add the return false; after it and everything should work as expected.

  4. tizz
    Posted 4 years ago #

    Hi Daluxe, thanks very much for your reply!
    I understand in theory, but in practice I don't know where to change, in which file.
    I looked in nggfunctions.php, but I haven't found nothing with "onclick". So I looked in shutter-reloaded.js and I have found some "onclick", but all of them already have "return false", except for this three:

    case 39:
    			if (prevlink) prevlink.onclick();
    		    case 37:
    			if (nextlink) nextlink.onclick();
    		    case 27:
    			if (closelink) closelink.onclick();

    and for this:

    D.innerHTML = '<div id="shWrap"><img src="'+shutterLinks[ln].link+'" id="shTopImg" title="' + t.msgClose + '" onload="shutterReloaded.showImg();" onclick="shutterReloaded.hideShutter();" />' + NavBar +'</div>';

    So I added return false; after onclick="shutterReloaded.hideShutter();" but nothing happens, I think it's not the right place.

    P.S.: For the images (picture list) I have changed in shutter-reloaded.js
    document.documentElement.style.overflowX = ''; in
    document.documentElement.style.overflowX = 'hidden'; and it works.

  5. tizz
    Posted 4 years ago #

    I can't believe that no one else has this problem or the solution.
    It happens with different browsers.
    Well, if you have a page only with slideshow or gallery isn't a big problem, but if you have slideshow at the article's bottom, it's so annoying.

  6. luckydog25
    Posted 4 years ago #

    I am trying, in Dashboard>Pages, to postion my Nextgen slide show on the right side of the page. I can move the [slideshow id=1] note to the right side of the page with the Align buttton, but that does not move the slide show itself (in the browser) to the right side. How can I do this?

  7. HighHopes
    Posted 3 years ago #

    to stop nextgen plugin imagebrowser jumping to the top of page, see the solution here:


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic