Posted in Javascript onMarch 17, 2013
<html> <head> <meta http-equiv=Content-Type content="text/html;charset=utf-8"> <script> y=1; function imgs() { var myImg=document.getElementsByTagName("img")[0]; myImg.src=y+".jpg"; if(y==2)y=1; else y++; } </script> </head> <body onload="setInterval(imgs,1000);"> <div align="center"> <img src="1.jpg"> </div> </body> </html>
javascript定时变换图片实例代码
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@