0
我不能讓我的網頁工作。在加載一個頁面,我得到這一行的錯誤tscontainer = new ActiveXObject('BDATuner.SystemTuningSpaces');
任何想法,爲什麼我得到這個錯誤,以及如何開始我的網頁工作?Javascript的ActiveX不能加載對象
我正在使用IE8。
msvidctl.dll可以在2根目錄中找到: C:\窗口\ system32
C:\ Windows \ RegisteredPackages {AA936DF4-2B08-4B1F-B071-72192E287704}
<HTML>
<HEAD>
<SCRIPT language=Javascript>
var tscontainer, ts, tr, locator;
function window_onload(){
tscontainer = new ActiveXObject('BDATuner.SystemTuningSpaces');
ts = tscontainer('DVB-T');
//ts = tscontainer('Nero DVBT Tuning Space');
//ts = tscontainer('KWORLD_DVBT');
tr = ts.CreateTuneRequest();
locator = new ActiveXObject('BDATuner.DVBTLocator');
tr.SID = -1;
tr.TSID = -1;
tr.ONID = -1;
locator.Bandwidth = 8;
locator.CarrierFrequency = 762000;
tr.Locator = locator;
//MSVidCtl.MaintainAspectRatio = 'True';
MSVidCtl.View(tr);
MSVidCtl.Run();
currentchannel.value = tr.Locator.CarrierFrequency;
}
function channel_enter(){
tr.Locator.CarrierFrequency = currentchannel.value;
MSVidCtl.View(tr);
currentchannel.value = tr.Locator.CarrierFrequency;
}
</Script>
</HEAD>
<BODY BGCOLOR="#000001" TEXT="#FFFFFF" LINK="#FCCB7A" VLINK="#551A8B" ALINK="#EE0000" onLoad="window_onload()">
<CENTER>
<OBJECT ID="MSVidCtl" CLASSID="CLSID:B0EDF163-910A-11D2-B632-00C04F79498E" Width="800" Height="600"></OBJECT>
<HR><B>FREQUENCY: </B><INPUT TYPE="text" id=currentchannel maxlength=7 SIZE=7>
<INPUT id=enter type=button value="APPLY" onClick="channel_enter()">
</CENTER>
</BODY>
</HTML>
但更喜歡下載DirectX最新版本。 – Ankit 2011-01-11 09:15:00