<html>
<head>
<script language="javascript">
var resets = false;
//播放录音
function playmedia(){
var mp = document.getElementById("Player");
mp.Filename = "E:\\1.mp3";
mp.play();
}
//延时处理后播放下一通录音
function waitplay(){
if(resets){
resets = false;
setTimeout('playnext()',500);
}
}
function playnext(){
var mp = document.getElementById("Player");
//alert("播放下一通");
mp.Filename = "E:\\2.mp3";
mp.play();
}
</script>
<script language = "JavaScript" for=Player event=playstatechange(newstate)>
switch (newstate) {
case 2:
// alert("暂停");
resets = true;
break;
case 3:
// alert("正在播放");
waitplay();
break;
}
</script>
</head>
<body class="hidden" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<table width="98%" class="common" border="0" cellspacing="0" cellpadding="0" align=center valign=top bgcolor="#EFEEEF">
<tr><td width="840" align=center valign=top>
<OBJECT id="Player" type=application/x-oleobject height=68
standby="Loading Windows Media Player components..." width="100%" border=0
classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 name=Player>
<PARAM NAME="AudioStream" VALUE="-1">
<PARAM NAME="AutoSize" VALUE="0">
<PARAM NAME="AutoStart" VALUE="-1">
<PARAM NAME="AnimationAtStart" VALUE="-1">
<PARAM NAME="AllowScan" VALUE="-1">
<PARAM NAME="AllowChangeDisplaySize" VALUE="-1">
<PARAM NAME="AutoRewind" VALUE="0">
<PARAM NAME="Balance" VALUE="10">
<PARAM NAME="BaseURL" VALUE="">
<PARAM NAME="BufferingTime" VALUE="5">
<PARAM NAME="CaptioningID" VALUE="">
<PARAM NAME="ClickToPlay" VALUE="-1">
<PARAM NAME="CursorType" VALUE="0">
<PARAM NAME="CurrentPosition" VALUE="-1">
<PARAM NAME="CurrentMarker" VALUE="0">
<PARAM NAME="DefaultFrame" VALUE="">
<PARAM NAME="DisplayBackColor" VALUE="0">
<PARAM NAME="DisplayForeColor" VALUE="16777215">
<PARAM NAME="DisplayMode" VALUE="0">
<PARAM NAME="DisplaySize" VALUE="4">
<PARAM NAME="Enabled" VALUE="-1">
<PARAM NAME="EnableContextMenu" VALUE="0">
<PARAM NAME="EnablePositionControls" VALUE="-1">
<PARAM NAME="EnableFullScreenControls" VALUE="0">
<PARAM NAME="EnableTracker" VALUE="-1">
<PARAM NAME="Filename" VALUE="">
<PARAM NAME="InvokeURLs" VALUE="-1">
<PARAM NAME="Language" VALUE="-1">
<PARAM NAME="Mute" VALUE="0">
<PARAM NAME="PlayCount" VALUE="1">
<PARAM NAME="PreviewMode" VALUE="0">
<PARAM NAME="Rate" VALUE="1">
<PARAM NAME="SAMILang" VALUE="">
<PARAM NAME="SAMIStyle" VALUE="">
<PARAM NAME="SAMIFileName" VALUE="">
<PARAM NAME="SelectionStart" VALUE="0">
<PARAM NAME="SelectionEnd" VALUE="-1">
<PARAM NAME="SendOpenStateChangeEvents" VALUE="-1">
<PARAM NAME="SendWarningEvents" VALUE="-1">
<PARAM NAME="SendErrorEvents" VALUE="-1">
<PARAM NAME="SendKeyboardEvents" VALUE="0">
<PARAM NAME="SendMouseClickEvents" VALUE="0">
<PARAM NAME="SendMouseMoveEvents" VALUE="0">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="-1">
<PARAM NAME="ShowCaptioning" VALUE="0">
<PARAM NAME="ShowControls" VALUE="-1">
<PARAM NAME="ShowAudioControls" VALUE="-1">
<PARAM NAME="ShowDisplay" VALUE="0">
<PARAM NAME="ShowGotoBar" VALUE="0">
<PARAM NAME="ShowPositionControls" VALUE="-1">
<PARAM NAME="ShowStatusBar" VALUE="-1">
<PARAM NAME="ShowTracker" VALUE="-1">
<PARAM NAME="TransparentAtStart" VALUE="-1">
<PARAM NAME="VideoBorderWidth" VALUE="0">
<PARAM NAME="VideoBorderColor" VALUE="0">
<PARAM NAME="VideoBorder3D" VALUE="0">
<PARAM NAME="Volume" VALUE="0">
<PARAM NAME="WindowlessVideo" VALUE="0">
<embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/windows/mediaplayer/download/default.asp"
Name="Player" width="100%" height="70" border="0" SHOWSTATUSBAR="-1"
SHOWCONTROLS="0" SHOWGOTOBAR="0" SHOWDISPLAY="-1" INVOKEURLS="-1"
AUTOSTART="1" CLICKTOPLAY="0" DisplayForeColor="12945678">
</OBJECT>
</td>
</tr>
<tr><td></td></tr>
<tr>
<td width="840" align=center valign=top>
<input type="button" value="播 放" οnclick="playmedia();">
</td>
</tr>
</table>
</html>