开发者

Ajax image gallery ("imago"). Scroll position

开发者 https://www.devze.com 2023-03-02 19:20 出处:网络
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 th

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消