WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. roostertail
    Member
    Posted 2 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

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. tizz
    Member
    Posted 2 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
    Member
    Posted 2 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
    Member
    Posted 2 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();
    			break;
    		    case 37:
    			if (nextlink) nextlink.onclick();
    			break;
    		    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
    Member
    Posted 2 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
    Member
    Posted 2 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
    Member
    Posted 1 year ago #

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

    http://wordpress.org/support/topic/next-gen-image-browser-jump-to-top-of-page-bug?replies=5#post-3120939

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags