Javascript:
function Start1 ()
{
var audie = document.getElementById("myAudio");
audie.src = ("RWY.mp3");
audie.play();
}
function Start2 ()
{
var audie = document.getElementById("myAudio");
audie.src = ("EL.mp3");
audie.play();
HTML
<img src="images/play.png" alt="Play Button width="37" height="30"
onclick="Start1()">
我正在尝试选择一个图像,一旦单击该图像,就会根据元素中描述的文件播放一首歌曲。