大家好:这是我的简单代码,为什么我的 javascript 在我的页面上显示为文本?任何帮助将不胜感激,任何提示也将不胜感激。先感谢您
<html>
<head><title>jsn massage - home page</title>
<script type="text/javascript">
var image1 = new Image()
image1.src = "images/100_0350a.jpg"
var image2 = new Image()
image2.src = "images/circle.jpg"
var image3 = new Image()
image3.src = "images/AddisonStudioI.jpg"
</script>
</head>
<body>
<img src="images/100_0350a.jpg" name="slide" width="400" height="400>
<script type="text/javascript">
var step=1;
function slideit()
{
document.images.slide.src=eval("image"+step+".src");
if(step<3)
step++;
else
step=1;
setTimeout("slideit()", 2500);
}
slideit();
</script>
</body>
</html>