Jon*_*anH 2 html javascript css jquery fotorama
我在我的网站上使用 jquery gallery fotorama ( http://fotorama.io ),我尝试通过将鼠标悬停在缩略图上来实现图像更改,例如http://www.homeaway.co.uk/p3530150#photos画廊。
我阅读了 API 文档并搜索了任何解决方案,但我不知道。
感谢您的帮助
杰华
尝试这个:
$(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)
});
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1988 次 |
| 最近记录: |