我使用Ariel Flesler的serialScroll脚本,并想添加一个类的活动,或突出显示的项目,所以我可以用CSS样式。在阅读文档时,我发现了notify触发器,但我不确定如何/是否可以使用它来完成此操作。
这是我的代码:
jQuery
jQuery(function( $ ){
$('#slideshow').serialScroll({
items:'li',
prev:'#screen2 a.prev',
next:'#screen2 a.next',
offset:-180,
start: 0,
duration:1200,
force:true,
stop:true,
lock:false,
cycle:false,
jump: true
});
});