<!DOCTYPE html>
<html>
<head>
<title>练习3</title>
<meta charset="UTF-8"/>
<script>
function play(){
document.getElementById("Run").style.display="block";
}
</script>
</head>
<body>
<h2>点击按钮有惊喜!</h2><br>
<input type="image" src="../images/play.jpg" onclick="play()"/>
<div id="Run" style="display:none">
<audio src="../other/1.mp3" controls="controls" autoplay="autoplay" loop="true"></audio><br>
<img id="images" src="../images/2.gif" width="400px" height="200px"/>
</div>
</body>
</html>
效果