用JS也可以..主要是可以无间隙循环滚动就可以了
如果是JS再请说明一下使用方法..
小弟刚入门..什么都不懂..谢谢了.
參考答案:<SCRIPT language=JavaScript>
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below
Pic[0] = 'images2005/03/1.gif' 图片路径
Pic[1] = 'images2005/03/2.gif'
Pic[2] = 'images2005/03/3.gif'
Pic[3] = 'images2005/03/4.gif'
Pic[4] = 'images2005/03/5.gif'
Pic[5] = 'images2005/03/6.gif'
Pic[6] = 'images2005/03/7.gif'
Pic[7] = 'images2005/03/8.gif'
Pic[8] = 'images2005/03/9.gif'
Pic[9] = 'images2005/03/10.gif'
// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad = new Image();
preLoad.src = Pic;
}
function runSlideShow() {
if (document.all) {
document.images.SlideShow.style.filter="blendTrans(duration=2)";
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
}
document.images.SlideShow.src = preLoad[j].src;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}
</SCRIPT>
将BODY改为 <BODY onload=runSlideShow()>
参考资料: