【发布时间】:2016-02-25 21:07:32
【问题描述】:
我用四个按钮制作了一个简单的网站。如果我点击一个,我希望它播放声音,当声音播放完毕(或在“X”秒后)我希望它重定向。
到目前为止,这是我的代码。我不知道如何输入声音和延迟。
<html>
<head>
<link rel="stylesheet" type="text/css" href="/level1/style.css">
</head>
<body>
<img STYLE= "top: 20px; Left: 200px; height:900px; width: 800px position: absolute;" src="\images\border.jpg">
<img STYLE= "position: absolute; top: 50px; Left: 50px; height:120px; width: 120px;" src="\images\level1.jpg">
<a href="#"><img src="\images\1a1.jpg" onmouseover="this.src='/images/1a1g.jpg'"
onmouseout="this.src='/images/1a1.jpg'" id="a1"> </a>
<a href="\level1\index.html"><img src="\images\1a2.jpg" onmouseover="this.src='/images/1a2g.jpg'"
onmouseout="this.src='/images/1a2.jpg'" " id="a2"> </a>
<a href="\level1\index.html"><img src="\images\1a3.jpg" onmouseover="this.src='/images/1a3g.jpg'"
onmouseout="this.src='/images/1a3.jpg'" id="a3"> </a>
<a href="\level1\index.html"><img src="\images\1a4.jpg" onmouseover="this.src='/images/1a4g.jpg'"
onmouseout="this.src='/images/1a4.jpg'" id="a4"> </a>
</body>
</html>
【问题讨论】:
-
重定向到哪里?做什么?
标签: javascript html button delay