<OBJECT  classid=clsid:E0A87E03-8CBA-44BE-B60B-A03BA274F6FB 
                                   codebase="http://wenn/voicemail/soundrecord.ocx#version=1,0,0,5" 
                              height=15 id=SoundRecord name=SoundRecord 
                              style="HEIGHT: 15px; LEFT: 0px; TOP: 0px; WIDTH: 94px" 
                              width=300 VIEWASTEXT><PARAM NAME="_ExtentX" VALUE="2487"><PARAM NAME="_ExtentY" VALUE="397"></OBJECT><SCRIPT language=JavaScript>
<!--
var Stateflag = 1
.....  
function PlayStream()
{
document.SoundRecord.WavePlay();
Stateflag = 2
}就是这样了,试用过那个document.getElementById("");好像也不行,应该是怎样呢!!

解决方案 »

  1.   

    function RecordStream()
    {
    var mydd=document.getElementById("SoundRecord");

    mydd.WaveRecord();
    Stateflag = 1
    }
    也不行,为什么,在点击打开时,就可以呢???
      

  2.   

    Object不作为window或document下的对象,它就是网页上独立的一个对象,你直接调用就行了
    如下:
    SoundRecord.WavePlay();
      

  3.   

    有谁能说说直接打开一个htm文件,与通过Web服务器来打开有什么区别吗??
      

  4.   

    document的对像只有
    all
    anchors
    applets
    body
    forms
    frames
    images
    links
    selection
    scripts
    stylesheets
    好像没有object.