<html>
<body>
<script language="javascript">
var myarr1=new Array(7);
myarr1[0]="g0.gif";
myarr1[1]="g1.gif";
myarr1[2]="g2.gif";
myarr1[3]="g3.gif";
myarr1[4]="g4.gif";
myarr1[5]="g5.gif";
myarr1[6]="g6.gif";
var mydate=new Date();
document.write(myarr1[mydate.getDay()]);
</script>
</body>
</html>
为什么我运行出来的是g1.gif这几个字符,而不是g1.gif这个动态图,存储路径没错。求指点
stone310
相关分类