我在做网页加载在ActiveX控件需要按一下步骤进行:
1.管理员权限打开终端:输入 regsvr32 xxx.ocx
2.regedit打开注册表,搜索xxx.ocx对应的uuid
3.编写测试html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title> 简单的OCX控件调用</title>
<script language="javascript" type="text/javascript">
function login()
{
alert("aaaaaaaaaaaaaaaaaaa");
var palyobj = document.getElementById("CDvsClient1");
alert(palyobj);
//palyobj.Login("aaaa".value,"bbb".value,"ccc".value);
//palyobj.aaa("asdfasdf");
palyobj.LoginServer('Techtest6','123456','asdfasdfa