想在本地实现用HTML显示文字内容,然后点击时播放MP3.
就像http://misc.beiwaionline.com/CourseContent/Pronunciation/cont/u10/10-01-01.htm 中的一样。看到他的代码中有:
                          <tr bgcolor="E7F7FB"> 
                            <td bgcolor="#FFFFFF"> 
                              <div class="danci" onClick="onPlaySound('10-01-1-5.WMA')"> 
                                You can <img src="../../pic/stress.gif" width="5" height="12">hardly 
                                <b>b</b>lame her. </div>
                            </td>
                          </tr>
<OBJECT id=MPlayer style="LEFT: 0px; WIDTH: 0px; POSITION: relative; TOP: 0px; HEIGHT: 0px; visibility: hidden;" 
CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6
 standby="Loading Microsoft Windows Media Player components..."
 TYPE="application/x-oleobject" >
           <PARAM NAME="url" VALUE="">
<PARAM NAME="AutoStart" VALUE="true">
<PARAM NAME="uiMode" VALUE="">
        </OBJECT> <SCRIPT LANGUAGE=javascript>
<!--
function onPlaySound(sName)
{document.all.MPlayer.style.visibility="visible";
  MPlayer.controls.Stop();
  MPlayer.URL=sName;
}
//-->
</SCRIPT>但是在本机就是不能实现。
请问如何才能实现这个功能呢?
谢谢啊!