首页 新闻 会员 周边 捐助

JS控制播放

0
[已关闭问题]

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>在线音乐欣赏</title>
<style type="text/css">
<!--
body {
 background-image: url(%E5%8F%AF%E7%88%B1%E7%9A%84.jpg);
}
.STYLE1 {
 font-size: 24px;
 color: #CC6600;
}
-->
</style>
<script type="text/javascript">
<!--
function MM_controlSound(x, _sndObj, sndFile) { //v3.0
  var i, method = "", sndObj = eval(_sndObj);
  if (sndObj != null) {
    if (navigator.appName == 'Netscape') method = "Play";
    else {
      if (window.MM_WMP == null) {
        window.MM_WMP = false;
        for(i in sndObj) if (i == "ActiveMovie") {
          window.MM_WMP = true; break;
      } }
      if (window.MM_WMP) method = "play";
      else if (sndObj.FileName) method = "run";
  } }
  if (method) eval(_sndObj+"."+method+"()");
  else window.location = sndFile;
}
//-->
</script>
</head>

<body onload="MM_controlSound('play','document.CS1276431126937','Lonely')">
<p>
  <embed name="CS1276431126937" src="Lonely" loop="false" autostart="false" hidden="false" width="280" height="50" enablejavascript="true"></embed>
</p>
<p class="STYLE1"> 歌曲:Lonely 歌手:nana</p>
<p>I'm lonely lonely</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>

请问哪里出错了?帮忙解答下!谢谢

eyebright的主页 eyebright | 初学一级 | 园豆:160
提问于:2010-06-21 21:41
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册