<html>
<head>
<title>音乐的是实现</title>
<bgsound loop="infinite" src="sound/xxx.mid">
</head>
<body>
</body>
</html>
谁说bgsound不行的
<html>
<head>...</head>
<body>
<bgsound id="bgsound" loop=1 />歌曲<a href="歌曲.mp3" onclick="st(this)">点击试听</a><a href="歌曲.mp3">点击下载</a><a href="*" onclick="stops()">停止播放</a>
<script>
function st(obj){
var src=obj.href
document.getElementById("bgsound").src=src
return false
}
function stops(){
document.getElementById("bgsound").src=""
return false
}
</script>
</body>
</html>