<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>我们的爱</title>
</head>
<script language=javaScript>
<!--//
sandra0 = new Image();
sandra0.src = "IMG_0844.JPG";
sandra1 = new Image();
sandra1.src = "IMG_0854.JPG";
sandra2 = new Image();
sandra2.src = "羊羊.JPG";
var i_strngth=1
var i_image=0
var imageurl = new Array()
imageurl[0] ="IMG_0844.JPG"
imageurl[1] ="IMG_0854.JPG"
imageurl[2] ="羊羊.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()",100)
}
else {
clearTimeout(timer)
var timer=setTimeout("hideimage()",1000)
}
}
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()",2000)
}
}
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()",500)
}
}
//-->
</script>
<body onLoad="showimage()">
<div id="testimage" style="position:absolute;visibility:visible;top:120px;left:240px"></div>
</body>
</html>
这个效果做好后图片太大了,怎么把他弄在 width="396" height="344" 中呢?还有时间间隔太短怎么改?