
$('#nextArrow').bind('click',function(){
alert("Clicked!");
});
$('#nextArrow').trigger('click');
核心代码:
$(window).load(function(){
vartimeOut = null;
$('#slideshow .arrow').click(function(e,simulated){
if(!simulated){
clearTimeout(timeOut);
}
});
(functionautoAdvance(){
$('#slideshow .next').trigger('click',[true]);
timeOut = setTimeout(autoAdvance,5000);
})();
});