<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title> </title>
<script language=javaScript>
<!--//
sandra0 = new Image();
sandra0.src = "a.jpg";
sandra1 = new Image();
sandra1.src = "b.jpg";
sandra1 = new Image();
sandra1.src = "c.jpg";
var i_strngth=1
var i_image=0
var imageurl = new Array()
imageurl[0] ="c.jpg"
imageurl[1] ="b.jpg"
imageurl[2] ="a.jpg"
function showimage() { 
if(document.all) {
if (i_strngth <=110) {
testimage.innerHTML="<img style='filter:alpha(opacity="+i_strngth+")' src="+imageurl[i_image]+" border=0>";
i_strngth=i_strngth+10
var timer=setTimeout("showimage()",300)
}
else {
clearTimeout(timer)
var timer=setTimeout("hideimage()",5000)
}
}
if(document.layers) {
clearTimeout(timer)
document.testimage.document.write("<img src="+imageurl[i_image]+" border=0>")
document.close()
i_image++
if (i_image >= imageurl.length) {i_image=0} 
var timer=setTimeout("showimage()",1000)

}
function hideimage() { 
if (i_strngth >=-10) {
testimage.innerHTML="<img style='filter:alpha(opacity="+i_strngth+")' src="+imageurl[i_image]+" border=0>";
i_strngth=i_strngth-10
var timer=setTimeout("hideimage()",100)

else {
clearTimeout(timer)
i_image++
if (i_image >= imageurl.length) {i_image=0}
i_strngth=1
var timer=setTimeout("showimage()",300) 
}
}
//-->
</script>
</head><body bgcolor="#F5F5DC" onLoad="showimage()" topmargin=0 leftmargin=0>
<div id="testimage"></div>
</body></html>
这段代码 在ie中正常显示  但是在火狐和chrome里就无法显示  求教??