用JAVASCRIPT 控制网页背景音乐
<bgsound id=bgs src="/song1.mid" loop="-1">
<INPUT type=file >
<input type=button value="stop" >
<script language=javascript>
var ss; //设定一个全局变量
function cc(tt)
{
if (document.all.bgs.src != "")
{
ss = document.all.bgs.src;
document.all.bgs.src = ""; //stop
tt.value = "begin";
}
else
{
document.all.bgs.src = ss;
tt.value = "stop";
}
}
</script>