日期:2014-05-16  浏览次数:20320 次

JavaScript与ActiveX控件的属性页
编写的ActiveX控件在Test   Container中测试正常,现在想在JavaScript中显示它的属性页,请问有没有办法可以做到?
谢谢!

------解决方案--------------------
帮顶。
------解决方案--------------------
<script>
function show(Obj) {
resultShow.value= " ";
var result= " ", k=1, j=0;
for(var i in Obj){
try {
var getFromObj = i + " = " + Obj[i];
result += formatString(getFromObj) + (k++%3? " ": "\n ");
j++;
} catch (e) {}
}
result+= "\n\nTotal "+j+ " Attributes ";
resultShow.value=result;
}

function formatString(s){
var str = s+ " ";
var result = s + " ";
for(var i=0;i <(39-(str.length%39));i++){
result += " ";
}
return(result);
}
</script>

<textarea id=resultShow cols=100 rows=10 wrap=off> </textarea>
------解决方案--------------------
用ActiveX Control Pad试试!