img の src プロパティを変更しようとしているこの関数があります。Javascript は次のとおりです。
function transition(){
document.getElementById("firstfirst").src = marray[currArrayValue];
currArrayValue++;
if(currArrayValue == array.length-1){
currArrayValue = 0;
}
setTimeout(transition(), 1000);
}
私のGoogle Chromeコンソールは、document.getElementById("firstfirst")が存在しないと言っていますが、間違いなく存在します。HTMLは次のとおりです。
<div id="banners-container">
<div id="banners">
<img src="images/banners/top-banner-one.png" id="firstfirst" alt="Subscribe now to get access to thousands of vintage movies!" border="0">
</div>
</div>
何を与える?