我有这段代码来运行幻灯片(这只是我的代码中真正发生的事情的一部分)
var slideshow = {
delay: 5000,
actions:[],
run: function() {
if (slideshow.actions.length) {
slideshow.actions.shift()();
setTimeout(slideshow.run, slideshow.delay);
}
}
};
var tn;
$(".sideimg").each(function(){
var that = this;
slideshow.actions.push(function(){
if (tn != "") {
out(tn);
}
over($(that).attr("id"));
var $paneTarget = $('#lyr1');
var $target = $paneTarget.find('#'+$(that).attr("id"));
$paneTarget.stop().scrollTo( $target , 800 );
$("#rimg").fadeOut("slow",function () {
$("#rimg").attr("src",$(that).attr("bsrc"));
$("#rimg").attr("alt",$(that).attr("alt"));
$("#rimg").fadeIn("normal");
});
tn = $(that).attr("id");
});
});
完成每个sideimg课程后,它会停止......我需要从头开始......我试图回忆它 - 但什么也没发生
多谢你们