2

我在我的网站上使用 jquery gallery fotorama ( http://fotorama.io ),我尝试通过将鼠标悬停在缩略图上来更改图像,就像这样http://www.homeaway.co.uk/p3530150#photos画廊。

我阅读了 API 文档并搜索了任何解决方案,但我不知道。

感谢您的帮助

JH

4

1 回答 1

5

尝试这个:

$(document).on('mouseover', '.fotorama__nav__frame', function () {
  var $fotoramaDiv = $(this).parents('.fotorama'),
      fotoramaApi = $fotoramaDiv.data('fotorama');
  fotoramaApi.show({
    index: $('.fotorama__nav__frame', $fotoramaDiv).index(this)
  });
});

小提琴

于 2014-03-29T03:26:50.983 回答