[英]How to hover the name of the next and previous slide on the next and previous button?
我需要您的帮助,以在滑块的箭头上实现悬停功能,在“下一个”箭头上显示下一张幻灯片的名称,在“上一条”箭头上显示上一张幻灯片的名称。
我尝试使用jQuery进行编码,但似乎无法正常工作。
感谢您的帮助!
您可以像这样实现它;
$("#next").mouseenter(function () {
// Next slide name
$(this).html("N1");
});
$("#next").mouseleave(function () {
$(this).html("Next");
});
$("#prev").mouseenter(function () {
// Prev slide name
$(this).html("P1");
});
$("#prev").mouseleave(function () {
$(this).html("Prev");
});
jsfiddle 链接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.