<!doctype html><html><head><meta charset="utf-8"><title>JS试验</title><style type="text/css">*{margin:0;padding:0;}img{margin:50px;}</style><script type="text/javascript" > function over(){ var imgLeft=img.offsetLeft; var speed=10; if(imgLeft<1000){ img.style.left+=speed+'px'; setTimeout(over,50); } }</script></head><body><img src="../../../收藏的picture/animals/lovely cats/1.jpg" style="position:absolute"/><input type="button" value="开始" onClick="over()"/></body></html>
添加回答
举报
0/150
提交
取消