Html+JS+Css 实现动物赛跑随机速度
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<!-- <link rel="stylesheet" href="css/mystyle.css" /> -->
<!-- <script type="text/javascript" src="js/myjs1.js" ></script> -->
<style>
#map{
width: 1000px;
height: 600px;
position: absolute;
left: 200px;
top: 100px;
border: solid 1px #90E090;
text-align: center;
}
img{
display: none;
position: absolute;
width: 32px;
height: 32px;
}
</style>
</head>
<body>
<div id='map'>
<input type="button" value="开始" onclick="start()"/>
<input type="button" value="暂停" onclick="stop()"/>
<input type="button" value="继续" onclick="restart()"/>
</div>
<img id='r' src="img/r.jpg" />
<img id='t' src="img/t.jpg" />
<img id='z' src="img/z.jpg" />
<img id='x' src="img/x.jpg" />
<img id='c' src