大家好,最近用delphi做了一个ocx的activeX界面,但是比较大,把这个ocx压缩成cab压缩文件还是比较大,想在这个cab加载的时候在外面显示一个进度条来让人家不认为是死掉啊,不知怎样实现比较好,那个htm调用ocx的语句是这样的啊,谢谢大家,<HTML>
<H1> Delphi 7 ActiveX Test Page </H1><p>
You should see your Delphi 7 forms or controls embedded in the form below.
<HR><center><P>
<OBJECT
classid="clsid:62C75BF3-380C-4C18-AD0A-7CB065D9BDFB"
codebase="./Project1.inf"
width=1024
height=768
align=center
hspace=0
vspace=0
>
</OBJECT>
</HTML>project1.inf里面是这样写的;Delphi-generated INF file for Project1.ocx
[Add.Code]
Project1.ocx=Project1.ocx
midas.dll=midas.dll[Project1.ocx]
file=./Project1.cab
clsid={62C75BF3-380C-4C18-AD0A-7CB065D9BDFB}
RegisterServer=yes
FileVersion=1,0,44,0[midas.dll]
file=./midas.cab
FileVersion=7,0,4,453不知怎样实现好呢,谢谢
<H1> Delphi 7 ActiveX Test Page </H1><p>
You should see your Delphi 7 forms or controls embedded in the form below.
<HR><center><P>
<OBJECT
classid="clsid:62C75BF3-380C-4C18-AD0A-7CB065D9BDFB"
codebase="./Project1.inf"
width=1024
height=768
align=center
hspace=0
vspace=0
>
</OBJECT>
</HTML>project1.inf里面是这样写的;Delphi-generated INF file for Project1.ocx
[Add.Code]
Project1.ocx=Project1.ocx
midas.dll=midas.dll[Project1.ocx]
file=./Project1.cab
clsid={62C75BF3-380C-4C18-AD0A-7CB065D9BDFB}
RegisterServer=yes
FileVersion=1,0,44,0[midas.dll]
file=./midas.cab
FileVersion=7,0,4,453不知怎样实现好呢,谢谢
解决方案 »
- 这段JS代码什么意思
- 根据ID删除指定数据?
- 如何用JS实现一个效果
- 加了一个限定次数的东西后就匹配出错了
- 如何编写固定表头的表格,并兼容主流浏览器?
- 如何动态设置页面中指定元素的id?还有为什么我修改某标签的outerHTML总是无效?
- 弹出一个DIV,里面有个播放器,IE10下面一切正常, IE8下面播放器大小自动变大了
- 如何判断文本框中输入值在大于0而小于17,不符合条件的不能输入????
- input中的focus()问?在线等待,50分!
- jquery easyui中DataGrid DetailView加减号怎么去掉,如图:
- 获得table td 的id问提
- JavaScript仿标签式浏览器
<body onload="document.getElementById('a').style.display='none';document.getElementById('b').style.display='';">
<div id="a">loading...</div>
<div id="b" style="display:none">
<H1> Delphi 7 ActiveX Test Page </H1> <p>
You should see your Delphi 7 forms or controls embedded in the form below.
<HR> <center> <P>
<OBJECT
classid="clsid:62C75BF3-380C-4C18-AD0A-7CB065D9BDFB"
codebase="./Project1.inf"
width=1024
height=768
align=center
hspace=0
vspace=0
>
</OBJECT>
</div>
</body>
</HTML>
这种思路如何?
看看这个例子...http://vip.pastein.net/kanke/natineprince/ro/ItemForTask/ItemForTask.html
<body onload="document.getElementById('a').style.display='none';document.getElementById('b').style.display='';">
<div id="a">loading...</div>
<div id="b" style="display:none">
<H1> Delphi 7 ActiveX Test Page </H1> <p>
You should see your Delphi 7 forms or controls embedded in the form below.
<HR> <center> <P>
<OBJECT
classid="clsid:62C75BF3-380C-4C18-AD0A-7CB065D9BDFB"
codebase="./Project1.inf"
width=1024
height=768
align=center
hspace=0
vspace=0
>
</OBJECT>
</div>
</body>
</HTML>
<HTML>
<body onload="document.getElementById('a').style.display='none';document.getElementById('b').style.display='';">
<div id="a">
<img src="http://vip.pastein.net/kanke/natineprince/lib/image/loading.gif" />
<br />
loading...
</div>
<div id="b" style="display:none">
<H1> Delphi 7 ActiveX Test Page </H1> <p>
You should see your Delphi 7 forms or controls embedded in the form below.
<HR> <center> <P>
<OBJECT
classid="clsid:62C75BF3-380C-4C18-AD0A-7CB065D9BDFB"
codebase="./Project1.inf"
width=1024
height=768
align=center
hspace=0
vspace=0
>
</OBJECT>
</div>
</body>
</HTML>