新手问:如何图片交换显示,在线等...... <body onlosd="doTimer()"> 这个能运行吗?<body onload="doTimer()"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 sorry 是body onload="doTimer()"> 笔误了 <script language="javascript"> var the_timeout; ase=new Array(); ase[0]="file:///H|/piclib/a.jpg"; ase[1]="file:///H|/piclib/b.jpg"; var i=0; function doTimer() { document.getElementById("img").src = ase[i]; if(i==1) i=0; else i=1; if(!the_timeout) clearTimeout(the_timeout); the_timeout = setTimeout("doTimer();",3000); } </script> </head> <body onload="doTimer()"> <table width="100%" border="0" cellspacing="1"> <tr> <img src="" id="img"> </tr> </table> </body> </html> 常用的字符串分隔符有哪些,除了空格、制表符、逗号、分号 js应用取得jsp页面的值的问题 请问在下面的的代码中如何修改可以实现点击后改变图片吗?还请各位大师多多指教,拜拖哪.... 寻求实现以下需求的最简语句 javaScript的一个问题,高手help 打开一个doc文件,为何报错? 问一个简单的javascript(xx)参数问题! 请问我的一个前台的js取值问题!! 动态生成的控件,如何获取它的值? 一个问题 document.player.intsec.value javascript函数是否会重载
body onload="doTimer()">
笔误了
<script language="javascript">
var the_timeout;
ase=new Array();
ase[0]="file:///H|/piclib/a.jpg";
ase[1]="file:///H|/piclib/b.jpg"; var i=0; function doTimer()
{
document.getElementById("img").src = ase[i];
if(i==1) i=0;
else i=1;
if(!the_timeout) clearTimeout(the_timeout);
the_timeout = setTimeout("doTimer();",3000);
}
</script>
</head> <body onload="doTimer()">
<table width="100%" border="0" cellspacing="1">
<tr>
<img src="" id="img">
</tr>
</table>
</body>
</html>