时间函数setTimeout的探讨
<html><head>
<title>Dynamic</title>
<script language="javascript">
function show1(){
document.all.num1.style.display="";
document.all.num2.style.display="none";
document.all.num3.style.display="none";
}
function show2(){
document.all.num1.style.display="none";
document.all.num2.style.display="";
document.all.num3.style.display="none";
}
function show3(){
document.all.num1.style.display="none";
document.all.num2.style.display="none";
document.all.num3.style.dispaly="";
}
function run(){
setTimeout("show1()",400);
setTimeout("show2()",800);
setTimeout("show3()",1200);
setTimeout("run()",1200);
}
</script>
</head>
<body onload="run()">
<div id="num1" style="position:absolute;top:3;left:10;display:">
<img src="images/1.jpg">
</div>
<div id="num2" style="position:absolute;top:3;left:30;display:none">
<img src="images/2.jpg">
</div>
<div id="num3" style="position:absolute;top:3;left:50;display:none">
<img src="images/3.jpg">
</div>
</body>
</html>
show3()调用不起来 3.jpe不显示 这是为什么啊 ? 这个时间上的覆盖是怎么弄的啊 ~~~~