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