Javascript ActiveX 无法加载对象

发布于 2024-10-11 12:59:50 字数 1681 浏览 6 评论 0原文

我无法让我的页面工作。加载页面时,我在这行中遇到错误 tscontainer = new ActiveXObject('BDATuner.SystemTuningSpaces'); 有什么想法为什么会出现此错误以及如何启动我的页面工作吗?

我用的是IE8。

msvidctl.dll 可以在 2 个目录中找到: C:\WINDOWS\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>

i cant get my page to work. On loading a page i get error in this line tscontainer = new ActiveXObject('BDATuner.SystemTuningSpaces'); any ideas why i get this error and how to start my page to work?

I am using IE8.

msvidctl.dll can be found in 2 directories:
C:\WINDOWS\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>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

七色彩虹 2024-10-18 12:59:50

也许您应该从网络下载。

msvidctl.dll

或者您可以下载最新的 DirectX,因为该文件的使用与游戏和高级图形等功能相关。

May be you should download from web.

msvidctl.dll

or you can download the latest DirectX since this file use is related to functions like games and advanced graphics.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文