图片不停的自动变换大小
AD: 会员限时优惠仅需29元起,先到先得。【我要上车】
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>图片不停的自动变换大小</title> </head> <body> <img src="https://www.baidu.com/img/bd_logo1.png" name="logo_img" border="1" alt="图片" /> 不停的自动变换大小 <script> var b = 1; var c = true; function butong_net(){ if(document.all); if(c == true) { b++; } if(b==100) { b--; c = false } if(b==10) { b++; c = true; } if(c == false) { b--; } logo_img.width=150 + b; logo_img.height=125 - b; setTimeout("butong_net()",50); } butong_net(); </script> </body> </html>