本文实例讲述了JS实现的手机端精简幻灯片效果。分享给大家供大家参考,具体如下:
var curIndex = 0;
var timeInterval = 4000;
var arr = new Array();
arr[0] = "fukeb.jpg";
arr[1] = "baopi.jpg";
arr[2] = "renliub.jpg";
setInterval(changeImg, timeInterval);
function changeImg() {
var obj = document.getElementById("showpic");
if (curIndex =