是不是没有找到那个播放文件。。
接分

解决方案 »

  1.   

    给大家推荐个好的技术群  大家一起学习啊32759197
      

  2.   

    window.onload = function () {
        var obj=document.body.innerHTML;  
      var table = document.createElement("table");
      var tabody=document.createElement("tbody");
     
          var row = document.createElement("tr");
     
              var cell=document.createElement("td");
              cell.className = "test";
              var object= document.createElement("object");
              object.setAttribute("id","NSPlay");
              object.style.width="160px";
              object.style.height="120px";
              object.setAttribute("codeBase","http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715");
              object.setAttribute("classid","CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95");
              //object.setAttribute("VIEWASTEXT","");
              var para=document.createElement("PARAM");
              para.setAttribute("NAME","URL");
              para.setAttribute("VALUE",'0509am.wmv');
              object.appendChild(para);
              cell.appendChild(object); 
              
              row.appendChild(cell);
          
          tabody.appendChild(row);   
      table.appendChild(tabody);
      document.body.appendChild(table);  //+++
      NSPlay.FileName = '0509am.wmv';}