日期:2014-05-18 浏览次数:20526 次
var index = 0;
function ChangeImg() {
$("#img1").animate({ opacity: 0 }, 1000, function () {
$("#img1").attr("src", $("#imglink li img").eq(index).attr("src")).animate({ opacity: 1 }, 1000, function () {
setTimeout("ChangeImg()", 3000)
if (index == 1) {
index = 0;
}
});
});
}
setTimeout("ChangeImg()", 3000)