1. 运行效果如下图所示:
Slides, A Slideshow Plugin for jQuery
<script><br />
<br />
$(function(){<br />
var easings = [];<br />
var row = 0;<br />
for(var x in jQuery.easing){<br />
if (x != 'linear' && x != 'swing') {<br />
easings[row++] = x;<br />
}<br />
} <br />
<br />
$('#slides').slides({<br />
preload: true,<br />
preloadImage: 'img/loading.gif',<br />
play: 5000,<br />
pause: 2500,<br />
slideEasing: "swing", <br />
slideSpeed : 2000,<br />
hoverPause: true,<br />
animationComplete: function(current) {<br />
var index = Math.floor(Math.random() * easings.length);<br />
jQuery.easing.def = easings[index];<br />
}<br />
});<br />
});<br />
</script>