每隔一定时间跟换图片
Img = new Array("image/2.jpg","image/1.jpg","image/3.jpg","image/4.jpg");
size = Img.length;
i = 0;
function chImg(){
picID.src = Img[i];
i++;
if (i>=size) i = 0;
setTimeout("chImg()",1000);
} <body onLoad="chImg()">
<img id="picID">
</body>
相关文章
- 11-20Mr Youngs Picture Permutations 题解报告
- 11-20javascript – 使用windows.location.replace刷新不使用URL中的哈希的页面
- 11-20javascript – setInterval()使Node.js进程保持运行
- 11-20Picture of a diver surrounded by hundreds of fish
- 11-2045 The Effect of External Rewards on Behavior 外界奖励对行为的影响
- 11-20OpenCV 通过 MFC 的 Picture Control 控件操作图像
- 11-20OpenCV 2.2版本号以上显示图片到 MFC 的 Picture Control 控件中
- 11-20对话框上动态控件的创建、在Picture Control控件上显示图片
- 11-20Flutter 之绘画和效果小部件 Painting and effect widgets
- 11-20require(): open_basedir restriction in effect