如何使图像能够单击并转到下一个图像? [英] How do I make image click able and go to the next image?
本文介绍了如何使图像能够单击并转到下一个图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这里有一个示例 http://jsfiddle.net/x5mCR/
使用当前代码,如何使大图片能够点击,它将转到下一张图片?
With the current code how do I make the big image click able and it will go to next image?
推荐答案
$('#fullimage img').on('click', function() {
$(".fullimage").hide();
var next = $(this).next();
if (next.length > 0) {
next.fadeIn();
} else {
$('#fullimage img:first').fadeIn();
}
return false;
});
实时演示.
这篇关于如何使图像能够单击并转到下一个图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文