我能翻译中文。以下是您需要翻译的内容:
我有这段代码,但不知道为什么它不能正常工作。
<html>
<head>
<title>Test</title>
<script type="text/javascript">
function StopBackgroundMusic()
{
var MusicObj = document.getElementById("BackgroundMusic");
MusicObj.data = "http://www.oreillynet.com/examples/oreilly/digitalmedia/2005/02/ableton_intro_0205_gtr.mp3";
MusicObj.autoplay = "false";
MusicObj.autostart = "false";
return MusicObj;
}
</script>
</head>
<body>
<OBJECT ID="BackgroundMusic" data="http://www.oreillynet.com/examples/oreilly/digitalmedia/2005/02/ableton_intro_0205_gtr.mp3" TYPE="audio/mpeg" height="0" width="0">
<PARAM NAME="autostart" VALUE="true">
<PARAM NAME="autoplay" VALUE="true">
</OBJECT>
<form>
<input type='button' onclick='StopBackgroundMusic()' value='Stop music'/>
</form>
</body>
</html>
autoplay
和autostart
属性会有任何效果? - Šime Vidas