看起來你們是我的幫助的JavaScript。當我加載我的網頁的本地副本時,我有一個完美的幻燈片演示。然而,當我加載GoDaddy託管的實際頁面時,它不起作用。第一張圖片顯示,但只是靜態的。控制檯顯示沒有錯誤。再次,任何和所有的幫助,不勝感激。Javascript圖像幻燈片在本地工作,但沒有託管時
<div class="auto-style1" style="width: 226px; height: 179px">
<script language="javascript" type="text/javascript">
var i = 0; var path = new Array();
// LIST OF IMAGES
path[0] = "images/image_1.png";
path[1] = "images/image_2.png";
path[2] = "images/image_3.png";
path[3] = "images/image_4.png";
path[4] = "images/image_5.png";
path[5] = "images/image_6.png";
function swapImage()
{
document.slide.src = path[i];
if(i < path.length - 1) i++;
else i = 0;
setTimeout("swapImage()",3000);
}
window.onload=swapImage;
</script>
<img alt="" name="slide" height="140" src="images/image_1.png" width="224" class="auto-style2" />
</div>
可以共享鏈接? –
http://www.baprinterservice.com/temp.html它在那裏,因爲它沒有完全準備好你會看到。 – IrishCarBomb