新手问:如何图片交换显示,在线等...... <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> jsp页面中javascript代码获取的值传给java代码怎么传?急求救 请教,这个正则表达式如何写呢 input只允许输入英文和空格 这个js应用在ie6,ie7上为什么出错? 全选文本框中的文字!js怎么办到???? 请问使用Frameset实现分割的时候,如何在这个分割条上添加背景图片? trim 的问题,在线求助!!! 经典集--夜.... 如何在不集成sdk的情况下用js调用支付宝支付接口 Cesium 在使用KmlDataSource.load facilities.kml的时候404 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>