代码如下:
jQuery图片渐变切换 script>
var switchSpeed = 1000; //图片切换时间
var fadeSpeed = 1500; //渐变时间
setInterval(function(){
$('img').last().fadeOut(fadeSpeed, function(){
$(this).show().parent().prependTo($('ul'));
});
}, switchSpeed);
script>
效果预览:http://quchen.cau.edu.cn/jsDev/gradien.html