1.组件不存在,我用的是ie6.0 2.这个存在的话,在\system32\mshtmled.dll要存在,并且在注册表中注册 3.是,看csdn的activex控键 4.你自己找吧 ....:-) 5.是的 6.笔误,在那段程序中没用 7,8 Specifies the version number of the HTML Help ActiveX control. Enables the automatic download mechanism of ActiveX controls and full version checking.
function testFonts() { var a=dlgHelper.fonts.count; alert(a); //show total number of system fonts for (i = 1;i < dlgHelper.fonts.count;i++) {
var f= f + " " + dlgHelper.fonts(i) } alert(f); //show names of all system fonts }
//This variable needs to have global scope for the callColorDlg function to persist the chosen color var sInitColor = null; function callColorDlg(){ //if sInitColor is null, the color dialog box has not yet been called if (sInitColor == null) var sColor = dlgHelper.ChooseColorDlg(); else //call the dialog box and initialize the color to the color previously chosen var sColor = dlgHelper.ChooseColorDlg(sInitColor); //change the return value from a decimal value to a hex value and make sure the value has 6 //digits to represent the RRGGBB schema required by the color table sColor = sColor.toString(16); if (sColor.length < 6) { var sTempString = "000000".substring(0,6-sColor.length); sColor = sTempString.concat(sColor); } document.execCommand("ForeColor", false, sColor);
//set the initialization color to the color chosen sInitColor = sColor;
http://expert.csdn.net/Expert/topic/2403/2403881.xml?temp=.3620264
我一直都没明白, 可是又无人告知,唉...
2.这个存在的话,在\system32\mshtmled.dll要存在,并且在注册表中注册
3.是,看csdn的activex控键
4.你自己找吧 ....:-)
5.是的
6.笔误,在那段程序中没用
7,8 Specifies the version number of the HTML Help ActiveX control. Enables the automatic download mechanism of ActiveX controls and full version checking.
<OBJECT id=dlgHelper CLASSID="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b" width="0px" height="0px">
</OBJECT>
{
var a=dlgHelper.fonts.count; alert(a); //show total number of system fonts
for (i = 1;i < dlgHelper.fonts.count;i++)
{
var f= f + " " + dlgHelper.fonts(i) }
alert(f); //show names of all system fonts
}
var sInitColor = null;
function callColorDlg(){
//if sInitColor is null, the color dialog box has not yet been called
if (sInitColor == null)
var sColor = dlgHelper.ChooseColorDlg();
else
//call the dialog box and initialize the color to the color previously chosen
var sColor = dlgHelper.ChooseColorDlg(sInitColor);
//change the return value from a decimal value to a hex value and make sure the value has 6
//digits to represent the RRGGBB schema required by the color table
sColor = sColor.toString(16);
if (sColor.length < 6) {
var sTempString = "000000".substring(0,6-sColor.length);
sColor = sTempString.concat(sColor);
}
document.execCommand("ForeColor", false, sColor);
//set the initialization color to the color chosen
sInitColor = sColor;
}