麻煩會看程式碼的版友幫我看一下reviDX主題的程式碼
主要是幻燈片顯示路徑為手機內的相簿,但卻無法顯示出來,
麻煩會看程式碼的版友幫我看一下是那設定錯了!(附上圖片,右邊問號的部份無法顯示幻燈片)





html>
<head>
<!--<meta name="viewport" content="width=238, user-scalable=no" />-->
<script>
window.onload = onLoad;

var min = 0001;

//***RANDOM NUMBER IS GENERATED FROM 1 TO max - CHANGE max TO SOMETHING CLOSE TO THE # OF IMAGES IN YOUR CAMERA ROLL TO MINIMIZE ERRORS

var max = 0633;
//var maxtries = 100;
//var count = 0;
var URL = "";
var imagepath = "<font color="#FF0000">file:///private/var/mobile/Media/DCIM/100APPLE/</font>";
//imagepath = "";

function onLoad() {
//var index;
//var tester;
//var count;

//imageFound = false;
indexval = 0;
indexval = Math.floor(Math.random()*(max-min))+min;
index = "0000" + indexval;

URL = imagepath + "IMG_" + index.slice(-4) + ".JPG";

tester = new Image();
tester.onload = isGood;
tester.onerror = function()
{
URL = imagepath + "IMG_" + index.slice(-4) + ".PNG";
tester2 = new Image();
tester2.onload = isGood;
tester2.onerror = isBad;
tester2.src = URL;

};
tester.src = URL;

}

function isGood() {
// alert("Image found: " + URL);
document.getElementById("show").src = URL;

//*****TO CHANGE FREQUENCY OF TRANSITION****
//**** REPLACE 20 WITH DESIRED NUMBER OF SECONDS****

setTimeout("onLoad()",8*1000);
//count = 0;
}

function isBad() {
//alert("Image not found (" + count + "): " + URL);
//URL = "overlay.png";
document.getElementById("show").src = "";
//var URL = "";
//setTimeout("onLoad()",100);
history.go(0)
//if (count++ < maxtries) {
// setTimeout("onLoad()",100);
//}
//else {
// setTimeout("onLoad()",20*1000);
// count = 0;
//}
}
</script>
</head>
<body>
<img src = "overlay.png" style = "position:absolute;top:0px;left:0px;z-index:1;"/>
<img id ="show" style="position:absolute;top:35.5px;left:10px;height:138px;width=92px;-webkit-mask-box-image:url('Overlay.png');overflow:hidden;"/>
<span id="tester"></span>
</body>
</html>