Ajax image gallery ("imago"). Scroll position
I am using Ajax Image Gallery from this site: http://imago.codeboje.de/. The problem is that with 开发者_Python百科every image click or lefgt/right arrow click image changes and the scroll moves to the beginning of the page. But I need the scroll to be at the place of the image. How can I do that?
the elements you are clicking on are links with and href="#". You'll need to locate what function inside the imago code is being called when you click on one of the elements causing the screen to scroll back up and prevent the default action. This can usually be accomplished by adding
return false;
to the end of the function.
Another options would be to remove the link tag from those elements, however, that may also cause some additional modification of the imago source.
I'd go with the first option and have the problem functions return false.
精彩评论