代码如下:
<html>
<head>
<title>木东欢迎您</title>
<style>
#playerDIV {
 background-image: url(collage.jpg);
 width:600px;
 height:400px;
}
</style>
<script>
var rmID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA";
var wmID="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"; var thePlayer; 
function doPlays(){
doPlay("C:\\test\\move\\1.wmv");
doPlay("C:\\test\\move\\3.wmv");
}function doPlay(fPath){
  if(!fPath)fPath=document.getElementById("txtURL").value;
  if(fPath==""||fPath==null)return(false);
  fType=fPath.substring(fPath.lastIndexOf(".")+1).toLowerCase();
  if(thePlayer){
   document.getElementById("theTurePlayerID").outerHTML="";
  }
  thePlayer=document.createElement("object");
  thePlayer.width="100%";
  thePlayer.height="100%";
  thePlayer.style.display="none";
  thePlayer.id="theTurePlayerID";
  document.getElementById("playerDIV").appendChild(thePlayer);
  switch(fType){
    case "rm":case "rmvb":
     thePlayer.classid=rmID;
     with(thePlayer){
      _ExtentX=12118;_ExtentY=8573;
      AUTOSTART=-1;SHUFFLE=0;PREFETCH=0;
      NOLABELS=0;CONTROLS="Imagewindow";
      LOOP=0;NUMLOOP=0;CENTER=1;
      MAINTAINASPECT=0;BACKGROUNDCOLOR="#000000";
   
     }
     thePlayer.Source=fPath;
     thePlayer.DoPlay();
    break;
    default:
     thePlayer.classid=wmID;
     thePlayer.fileName=fPath;
     thePlayer.Play();
  }
  
  setTimeout("thePlayer.style.display='';",1000);
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body>
<div id="playerDIV" >
</div>
<input type=button onClick="doPlays();" value="播放" /><br/> 
</body>
</html>
为什么只播放第二个文件.如果需要先播放第一个文件,播放第一个文件完成,再第二个文件,该怎么处理