正如标题所示,幻灯片在本地工作,但在上传到服务器时不能。
该网站是http://cmp.physics.iastate.edu/esl/photos.html
幻灯片代码为:
<script type="text/javascript">
<!-->
var image1=new Image()
image1.src="images/ESL Keep/Thumbnails/IMG_2509.jpg"
var image2=new Image()
image2.src="images/ESL Keep/Thumbnails/IMG_2510.jpg"
var image3=new Image()
image3.src="images/ESL Keep/Thumbnails/IMG_2518.jpg"
var image4=new Image()
image4.src="images/ESL Keep/Thumbnails/IMG_2536.jpg"
var image5=new Image()
image5.src="images/ESL Keep/Thumbnails/IMG_2537.jpg"
var image6=new Image()
image6.src="images/ESL Keep/Thumbnails/IMG_2537.jpg"
var image7=new Image()
image7.src="images/ESL Keep/Thumbnails/IMG_2543.jpg"
//-->
</script>
<img src="images/ESL Keep/Thumbnails/IMG_2509.jpg" name="slide" width="450" height="300"/>
<script type="text/javascript">
<!--
var step=1
function slideit(){
document.images.slide.src=eval("image"+step+".src")
if(step<6)
step++
else
step=1
setTimeout("slideit()",3000)
}
slideit();
//-->
</script>
任何人有任何想法或原因为什么它不起作用?
任何帮助表示赞赏。谢谢。